6 template <class SourcePosition>
9 This is a [link lazy_metafunction lazy template metafunction].
13 [[`SourcePosition`] [[link source_position source position]]]
18 Returns the column of a source position.
22 #include <boost/metaparse/get_col.hpp>
24 [h1 Expression semantics]
26 For any `l`, `c` compile-time wrapped integral values and `ch` compile-time
27 wrapped character the following are equivalent
29 get_col<source_position<l, c, ch>>::type
35 #include <boost/metaparse/get_col.hpp>
36 #include <boost/metaparse/source_position.hpp>
38 #include <type_traits>
40 using namespace boost::metaparse;
42 struct returns_source_position
46 std::integral_constant<int, 11>,
47 std::integral_constant<int, 13>,
48 std::integral_constant<char, 0>
55 std::integral_constant<int, 11>,
56 std::integral_constant<int, 13>,
57 std::integral_constant<char, 0>
60 "It should return the column of a source position"
64 get_col<returns_source_position>::type::value == 13,
65 "It should support lazy evaluation"