Home
last modified time | relevance | path

Searched refs:fallback_value (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/convert/example/
Dgetting_serious.cpp35 int const fallback_value = -1; in example1() local
73 int i1 = r1 ? r1.value() : fallback_value; in example1()
74 int i2 = r2.value_or(fallback_value); in example1()
75 int i3 = convert<int>(str3, cnv).value_or(fallback_value); in example1()
94 int const fallback_value = -1; in example4() local
100 int i1 = res.value_or(fallback_value); in example4()
117 int const fallback_value = -1; in example7() local
124 int i1 = convert<int>(str, cnv, fallback_value); in example7()
138 int m1 = convert<int>(str, cnv).value_or(fallback_value); in example7()
143 int n1 = convert<int>(str).value_or(fallback_value); in example7()
Dgetting_started.cpp206 fallback_fun(char const* msg, int fallback_value) in fallback_fun() argument
212 log(msg); return fallback_value; in fallback_fun()
/third_party/boost/libs/convert/doc/
Dgetting_serious.qbk31 int i2 = boost::convert<int>(str2, cnv).value_or(fallback_value);
34 …_or_eval()` over `value_or()` is that the actual calculation of the `fallback_value` is potentiall…
Dno_optional_interface.qbk17 TypeOut convert(TypeIn const&, Converter const&, TypeOut const& fallback_value);
Ddesign_notes.qbk139 Out convert(In const&, Converter const&, Out const& fallback_value);