Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::fallback_to_none Struct Reference

The fallback_to_none policy results in returning an empty value reference if the attribute value cannot be extracted. More...

#include <fallback_policy.hpp>

Public Types

enum  { guaranteed_result = false }
 

Static Public Member Functions

template<typename FunT >
static bool apply_default (FunT &)
 The method is called in order to apply a function object to the default value. More...
 
template<typename FunT >
static bool apply_default (FunT const &)
 The method is called in order to apply a function object to the default value. More...
 
static void on_invalid_type (type_info_wrapper const &)
 The method is called when value extraction failed because the attribute value has different type than requested. More...
 
static void on_missing_value ()
 The method is called when value extraction failed because the attribute value was not found. More...
 

Detailed Description

The fallback_to_none policy results in returning an empty value reference if the attribute value cannot be extracted.

Member Enumeration Documentation

anonymous enum
Enumerator
guaranteed_result 

Member Function Documentation

template<typename FunT >
static bool boost::fallback_to_none::apply_default ( FunT &  )
inlinestatic

The method is called in order to apply a function object to the default value.

template<typename FunT >
static bool boost::fallback_to_none::apply_default ( FunT const &  )
inlinestatic

The method is called in order to apply a function object to the default value.

static void boost::fallback_to_none::on_invalid_type ( type_info_wrapper const &  )
inlinestatic

The method is called when value extraction failed because the attribute value has different type than requested.

static void boost::fallback_to_none::on_missing_value ( )
inlinestatic

The method is called when value extraction failed because the attribute value was not found.


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