Lines Matching refs:fn
58 boost::function0<int> fn; in main() local
60 fn = &forty_two; in main()
62 BOOST_TEST( fn() == 42 ); in main()
64 BOOST_TEST( fn.contains(&forty_two) ); in main()
65 BOOST_TEST( !fn.contains( Seventeen() ) ); in main()
66 BOOST_TEST( !fn.contains( ReturnInt(0) ) ); in main()
67 BOOST_TEST( !fn.contains( ReturnInt(12) ) ); in main()
69 fn = Seventeen(); in main()
71 BOOST_TEST( fn() == 17 ); in main()
73 BOOST_TEST( !fn.contains( &forty_two ) ); in main()
74 BOOST_TEST( fn.contains( Seventeen() ) ); in main()
75 BOOST_TEST( !fn.contains( ReturnInt(0) ) ); in main()
76 BOOST_TEST( !fn.contains( ReturnInt(12) ) ); in main()
78 fn = ReturnInt(12); in main()
80 BOOST_TEST( fn() == 12 ); in main()
82 BOOST_TEST( !fn.contains( &forty_two ) ); in main()
83 BOOST_TEST( !fn.contains( Seventeen() ) ); in main()
84 BOOST_TEST( !fn.contains( ReturnInt(0) ) ); in main()
85 BOOST_TEST( fn.contains( ReturnInt(12) ) ); in main()