OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::application_config_value< T, As > Class Template Reference

Class wrapping values that can be loaded from application_config. More...

#include <eagine/application_config.hpp>

Public Member Functions

 application_config_value (application_config &config, string_view key, string_view tag, T initial={}) noexcept
 Initialization from key, tag and optional initial value.
 
 application_config_value (application_config &config, string_view key, T initial={}) noexcept
 Initialization from key and optional initial value.
 
auto value () const noexcept -> As
 Returns the stored value converted to the As type.
 
 operator As () const noexcept
 Implicit conversion of the stored value to the As type. More...
 

Detailed Description

template<typename T, typename As = std::add_const_t<T>&>
class eagine::application_config_value< T, As >

Class wrapping values that can be loaded from application_config.

Member Function Documentation

◆ operator As()

template<typename T , typename As = std::add_const_t<T>&>
eagine::application_config_value< T, As >::operator As ( ) const
inlinenoexcept

Implicit conversion of the stored value to the As type.

See also
value

The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).