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

Function flat_map

extern/boost/boost/optional/optional.hpp:1433–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1431
1432 template <typename F>
1433 optional<typename optional_detail::optional_value_type<typename boost::result_of<F(reference_type)>::type>::type> flat_map(F f) &
1434 {
1435 if (this->has_value())
1436 return f(get());
1437 else
1438 return none;
1439 }
1440
1441 template <typename F>
1442 optional<typename optional_detail::optional_value_type<typename boost::result_of<F(reference_const_type)>::type>::type> flat_map(F f) const&

Callers

nothing calls this directly

Calls 3

getFunction · 0.70
moveFunction · 0.50
has_valueMethod · 0.45

Tested by

no test coverage detected