Lines Matching refs:cnv
24 struct boost::cnv::by_default : boost::cnv::cstream {};
30 boost::cnv::cstream cnv; in example1() local
39 int i2 = convert<int>("not an int", cnv).value_or(-1); // after the call i2==-1 in example1()
49 int i2 = convert<int>(str, cnv).value(); // Throws if the conversion fails. in example1()
59 optional<int> r1 = convert<int>(str1, cnv); // Does not throw on conversion failure. in example1()
60 optional<int> r2 = convert<int>(str2, cnv); // Does not throw on conversion failure. in example1()
75 int i3 = convert<int>(str3, cnv).value_or(fallback_value); in example1()
76 int i4 = convert<int>(str3, cnv).value_or_eval(fallback_function); in example1()
92 boost::cnv::cstream cnv; in example4() local
96 boost::optional<int> res = boost::convert<int>(str, cnv); in example4()
106 int i2 = convert<int>(str, cnv).value_or_eval(fallback_func()); in example4()
107 int i3 = convert<int>(str, cnv, fallback_func()); // Same as above. Alternative API. in example4()
115 boost::cnv::cstream cnv; in example7() local
124 int i1 = convert<int>(str, cnv, fallback_value); in example7()
125 int i2 = convert<int>(str, cnv, fallback_func()); in example7()
130 int i3 = convert<int>(str, cnv, boost::throw_on_failure); in example7()
138 int m1 = convert<int>(str, cnv).value_or(fallback_value); in example7()
139 int m2 = convert<int>(str, cnv).value_or_eval(fallback_func()); in example7()
140 int m3 = convert<int>(str, cnv).value(); in example7()