Ticket #7378: example.cpp

File example.cpp, 369 bytes (added by Andreas Hehn <hehn@…>, 10 years ago)

demonstration code

Line 
1#include <boost/pending/property.hpp>
2
3struct test_prop_tag{};
4
5struct non_existing_tag{};
6
7int main() {
8 typedef boost::property<test_prop_tag,int> my_property_list;
9 bool found_ok = boost::lookup_one_property<my_property_list,test_prop_tag>::found;
10 bool found_fails = boost::lookup_one_property<my_property_list,non_existing_tag>::found;
11 return 0;
12}