MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / enum_parameter

Function enum_parameter

extern/boost/boost/test/utils/runtime/parameter.hpp:426–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424#else
425 template<typename Modifiers>
426 enum_parameter( cstring name, Modifiers const& m )
427#endif
428 : base( name, m )
429 {
430#ifdef BOOST_TEST_CLA_NEW_API
431 auto const& values = m[enum_values<EnumType>::value];
432 auto it = values.begin();
433#else
434 std::vector<std::pair<cstring, EnumType> > const& values = m[enum_values<EnumType>::value];
435 typename std::vector<std::pair<cstring, EnumType> >::const_iterator it = values.begin();
436#endif
437 while( it != values.end() ) {
438 m_valid_names.push_back( it->first );
439 ++it;
440 }
441 }
442
443private:
444 basic_param_ptr clone() const BOOST_OVERRIDE

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected