Searched refs:CalculatorArity (Results 1 – 1 of 1) sorted by relevance
/third_party/boost/libs/proto/test/ |
D | examples.cpp | 58 struct CalculatorArity; 80 … typedef typename boost::result_of<CalculatorArity(child_expr, State, Data)>::type result_type; 113 typedef typename boost::result_of<CalculatorArity(left_expr, State, Data)>::type left_arity; 114 … typedef typename boost::result_of<CalculatorArity(right_expr, State, Data)>::type right_arity; 134 struct CalculatorArity struct 429 std::cout << CalculatorArity()( proto::lit(100) * 200, i, i) << '\n'; in test_examples() 430 std::cout << CalculatorArity()( (_1 - _1) / _1 * 100, i, i) << '\n'; in test_examples() 431 std::cout << CalculatorArity()( (_2 - _1) / _2 * 100, i, i) << '\n'; in test_examples() 434 BOOST_CHECK_EQUAL(0, CalculatorArity()( proto::lit(100) * 200, i, i)); in test_examples() 435 BOOST_CHECK_EQUAL(1, CalculatorArity()( (_1 - _1) / _1 * 100, i, i)); in test_examples() [all …]
|