Home
last modified time | relevance | path

Searched refs:pair_type (Results 1 – 22 of 22) sorted by relevance

/third_party/boost/libs/fusion/test/sequence/
Dstd_pair.cpp45 typedef std::pair<int, std::string> pair_type; in main() typedef
46 BOOST_MPL_ASSERT_NOT((traits::is_view<pair_type>)); in main()
47 BOOST_STATIC_ASSERT(!traits::is_view<pair_type>::value); in main()
48 pair_type p(123, "Hola!!!"); in main()
59 BOOST_STATIC_ASSERT(boost::fusion::result_of::size<pair_type>::value == 2); in main()
60 BOOST_STATIC_ASSERT(!boost::fusion::result_of::empty<pair_type>::value); in main()
93 typedef std::pair<int, std::string> pair_type; in main() typedef
94 BOOST_MPL_ASSERT((mpl::is_sequence<pair_type>)); in main()
95 BOOST_MPL_ASSERT((boost::is_same<int, mpl::front<pair_type>::type>)); in main()
/third_party/boost/libs/spirit/example/karma/
Dkey_value_sequence.cpp26 typedef std::pair<std::string, boost::optional<std::string> > pair_type; typedef
30 : karma::grammar<OutputIterator, std::vector<pair_type>()>
39 karma::rule<OutputIterator, std::vector<pair_type>()> query;
40 karma::rule<OutputIterator, pair_type()> pair;
49 typedef std::vector<client::pair_type>::value_type value_type; in main()
52 std::vector<client::pair_type> v; in main()
/third_party/mindspore/mindspore/core/utils/
Dordered_map.h44 using pair_type = std::pair<key_t, value_t>; variable
45 using sequential_type = std::list<pair_type>;
66 pair_type &front() { return sequential_data_.front(); } in front()
67 const pair_type &front() const { return sequential_data_.front(); } in front()
68 pair_type &back() { return sequential_data_.back(); } in back()
69 const pair_type &back() const { return sequential_data_.back(); } in back()
119 std::pair<iterator, bool> insert(const pair_type &kv) { in insert()
129 std::pair<iterator, bool> insert(pair_type &&kv) { in insert()
139 std::pair<iterator, bool> add(const key_t &key) { return insert(pair_type{key, ValueT{}}); } in add()
216 using pair_type = std::pair<key_t, value_t>; variable
[all …]
/third_party/boost/libs/test/doc/examples/
Dexample32.run-fail.cpp14 typedef std::pair<int,float> pair_type; typedef
16 BOOST_TEST_DONT_PRINT_LOG_VALUE( pair_type )
20 pair_type p1( 2, 5.5f ); in BOOST_AUTO_TEST_CASE()
21 pair_type p2( 2, 5.501f ); in BOOST_AUTO_TEST_CASE()
/third_party/boost/boost/iostreams/device/
Darray.hpp33 typedef std::pair<char_type*, char_type*> pair_type; typedef in boost::iostreams::detail::array_adapter
47 pair_type input_sequence();
48 pair_type output_sequence();
116 typename array_adapter<Mode, Ch>::pair_type
119 return pair_type(begin_, end_); } in input_sequence()
122 typename array_adapter<Mode, Ch>::pair_type
125 return pair_type(begin_, end_); } in output_sequence()
/third_party/boost/libs/phoenix/test/boost_bind_compatibility/
Dbind_dm3_test.cpp40 typedef std::pair<int, int> pair_type; in main() typedef
42 pair_type pair( 10, 20 ); in main()
47 int const & x = boost::phoenix::bind( &pair_type::first, _1 )( pair ); in main()
49 int const & x = bind( &pair_type::first, _1 )( pair ); in main()
/third_party/boost/boost/fusion/sequence/intrinsic/detail/
Dsegmented_end_impl.hpp48 typedef iterator_range<end_type, end_type> pair_type; typedef
49 typedef cons<pair_type, Stack> type;
52 static pair_type make_pair(end_type end) in make_pair()
54 return pair_type(end, end); in make_pair()
Dsegmented_begin_impl.hpp79 typedef iterator_range<begin_type, end_type> pair_type; typedef
80 typedef cons<pair_type, Stack> type;
85 return type(pair_type(fusion::begin(seq), fusion::end(seq)), stack); in call()
/third_party/boost/boost/compute/types/
Dpair.hpp44 typedef std::pair<T1, T2> pair_type; in operator ()() typedef
49 kernel.add_type_declaration<pair_type>(type_definition<pair_type>()); in operator ()()
101 typedef std::pair<T1, T2> pair_type; in value() typedef
107 << "} " << type_name<pair_type>() << ";\n"; in value()
/third_party/boost/libs/compute/include/boost/compute/types/
Dpair.hpp44 typedef std::pair<T1, T2> pair_type; in operator ()() typedef
49 kernel.add_type_declaration<pair_type>(type_definition<pair_type>()); in operator ()()
101 typedef std::pair<T1, T2> pair_type; in value() typedef
107 << "} " << type_name<pair_type>() << ";\n"; in value()
/third_party/boost/libs/compute/test/
Dtest_generate.cpp52 typedef std::pair<int, float> pair_type; in BOOST_AUTO_TEST_CASE() typedef
54 bc::vector<pair_type> vector(3, context); in BOOST_AUTO_TEST_CASE()
56 BOOST_COMPUTE_FUNCTION(pair_type, generate_pair, (void), in BOOST_AUTO_TEST_CASE()
64 std::vector<pair_type> host_vector(3); in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/locale/src/shared/
Dmessage.cpp109 typedef std::pair<char const *,char const *> pair_type; typedef in boost::locale::gnu_gettext::mo_file
127 pair_type find(char const *context_in,char const *key_in) const in find()
129 pair_type null_pair((char const *)0,(char const *)0); in find()
184 pair_type value(int id) const in value()
190 return pair_type(&data_[off],&data_[off]+len); in value()
301 typedef std::pair<char_type const *,char_type const *> pair_type; typedef
302 …static pair_type use(mo_file const &/*mo*/,char_type const * /*context*/,char_type const * /*key*/) in use()
304 return pair_type((char_type const *)(0),(char_type const *)(0)); in use()
312 typedef std::pair<char_type const *,char_type const *> pair_type; typedef
313 static pair_type use(mo_file const &mo,char const *context,char const *key) in use()
[all …]
/third_party/boost/libs/bind/test/
Dbind_dm3_test.cpp30 typedef std::pair<int, int> pair_type; in main() typedef
32 pair_type pair( 10, 20 ); in main()
34 int const & x = boost::bind( &pair_type::first, _1 )( pair ); in main()
/third_party/boost/boost/iostreams/
Dcopy.hpp60 typedef std::pair<char_type*, char_type*> pair_type; in copy_impl() typedef
61 pair_type p1 = iostreams::input_sequence(src); in copy_impl()
62 pair_type p2 = iostreams::output_sequence(snk); in copy_impl()
79 typedef std::pair<char_type*, char_type*> pair_type; in copy_impl() typedef
80 pair_type p = iostreams::input_sequence(src); in copy_impl()
99 typedef std::pair<char_type*, char_type*> pair_type; in copy_impl() typedef
101 pair_type p = snk.output_sequence(); in copy_impl()
/third_party/boost/libs/spirit/example/qi/
Dkey_value_sequence_empty_value.cpp27 typedef std::pair<std::string, boost::optional<std::string> > pair_type; typedef
28 typedef std::vector<pair_type> pairs_type;
44 qi::rule<Iterator, pair_type()> pair;
/third_party/boost/boost/fusion/container/map/detail/
Dmap_impl.hpp70 typedef Pair pair_type; typedef
130 pair_type get_val(mpl::int_<index>) const;
152 typename cref_result<pair_type>::type
159 typename ref_result<pair_type>::type
/third_party/boost/boost/iostreams/detail/
Drestrict_impl.hpp98 typedef std::pair<char_type*, char_type*> pair_type; typedef in boost::iostreams::detail::restricted_direct_device
110 pair_type input_sequence();
111 pair_type output_sequence();
113 pair_type sequence(mpl::true_);
114 pair_type sequence(mpl::false_);
334 typename restricted_direct_device<Device>::pair_type
342 typename restricted_direct_device<Device>::pair_type
350 typename restricted_direct_device<Device>::pair_type
355 typename restricted_direct_device<Device>::pair_type
/third_party/boost/libs/bimap/test/
Dtest_structured_pair.cpp74 typedef structured_pair< short, double, normal_layout > pair_type; in test_basic() typedef
77 pair_type pa( 2, 3.1416 ); in test_basic()
/third_party/boost/libs/geometry/test/algorithms/buffer/
Dtest_buffer_svg_per_turn.hpp121 typedef std::pair<Point, int> pair_type; typedef in per_turn_visitor
122 typedef std::vector<pair_type> vector_type;
135 BOOST_FOREACH(pair_type const& p, points) in per_turn_visitor()
/third_party/boost/boost/numeric/ublas/tensor/
Dmulti_index_utility.hpp308 using pair_type = std::pair<std::size_t,std::size_t>; in index_position_pairs() typedef
311 auto array = std::array<pair_type,p>{}; in index_position_pairs()
351 template<class pair_type, std::size_t N>
352 constexpr auto array_to_vector( std::array<pair_type,N> const& array) in array_to_vector() argument
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_metadata.function635 psa_key_type_t pair_type = PSA_KEY_TYPE_KEY_PAIR_OF_PUBLIC_KEY( type );
636 TEST_EQUAL( PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR( pair_type ), type );
637 key_type_classification( pair_type,
692 psa_key_type_t pair_type = PSA_KEY_TYPE_ECC_KEY_PAIR( curve );
697 test_key_type( pair_type, KEY_TYPE_IS_ECC | KEY_TYPE_IS_KEY_PAIR );
700 TEST_EQUAL( PSA_KEY_TYPE_ECC_GET_FAMILY( pair_type ), curve );
709 psa_key_type_t pair_type = PSA_KEY_TYPE_DH_KEY_PAIR( group );
714 test_key_type( pair_type, KEY_TYPE_IS_DH | KEY_TYPE_IS_KEY_PAIR );
717 TEST_EQUAL( PSA_KEY_TYPE_DH_GET_FAMILY( pair_type ), group );
/third_party/boost/libs/random/performance/
Dgenerate_table.cpp83 typedef std::pair<std::string, double> pair_type; in main() typedef
84 BOOST_FOREACH(const pair_type& pair, generator_info) { in main()