Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
config::get (3 of 3 overloads)

Retrieve a string configuration value into a character array.

template<
    std::size_t N>
const char * get(
    const char * section,
    const char * key_name,
    const char * default_value,
    char((&value)[N]) const;

The returned pointer may be: * a pointer that is valid for the lifetime of the execution context, or

Exceptions

std::out_of_range

Thrown if the configured value is too long for the supplied buffer.


PrevUpHomeNext