Lines Matching refs:fn
38 boost::function0<int> fn; in main() local
40 BOOST_TEST( !fn.contains( boost::bind( f, 1 ) ) ); in main()
41 BOOST_TEST( !fn.contains( boost::bind( f, 2 ) ) ); in main()
42 BOOST_TEST( !fn.contains( boost::bind( g, 1 ) ) ); in main()
44 fn = boost::bind( f, 1 ); in main()
46 BOOST_TEST( fn() == 1 ); in main()
48 BOOST_TEST( fn.contains( boost::bind( f, 1 ) ) ); in main()
49 BOOST_TEST( !fn.contains( boost::bind( f, 2 ) ) ); in main()
50 BOOST_TEST( !fn.contains( boost::bind( g, 1 ) ) ); in main()
52 fn = boost::bind( f, 2 ); in main()
54 BOOST_TEST( fn() == 2 ); in main()
56 BOOST_TEST( !fn.contains( boost::bind( f, 1 ) ) ); in main()
57 BOOST_TEST( fn.contains( boost::bind( f, 2 ) ) ); in main()
58 BOOST_TEST( !fn.contains( boost::bind( g, 1 ) ) ); in main()
60 fn = boost::bind( g, 1 ); in main()
62 BOOST_TEST( fn() == 2 ); in main()
64 BOOST_TEST( !fn.contains( boost::bind( f, 1 ) ) ); in main()
65 BOOST_TEST( !fn.contains( boost::bind( f, 2 ) ) ); in main()
66 BOOST_TEST( fn.contains( boost::bind( g, 1 ) ) ); in main()