Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
config::get (2 of 3 overloads)

Retrieve a string configuration value.

const char * get(
    const char * section,
    const char * key_name,
    const char * default_value,
    char * value,
    std::size_t value_len) 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