Home
last modified time | relevance | path

Searched full:container (Results 1 – 25 of 4825) sorted by relevance

12345678910>>...193

/third_party/boost/boost/python/suite/indexing/
Dvector_indexing_suite.hpp16 template <class Container, bool NoProxy, class DerivedPolicies>
21 template <class Container, bool NoProxy>
23 : public vector_indexing_suite<Container,
24 NoProxy, final_vector_derived_policies<Container, NoProxy> > {};
44 class Container,
47 = detail::final_vector_derived_policies<Container, NoProxy> >
49 : public indexing_suite<Container, DerivedPolicies, NoProxy>
53 typedef typename Container::value_type data_type;
54 typedef typename Container::value_type key_type;
55 typedef typename Container::size_type index_type;
[all …]
Dindexing_suite.hpp23 // to Python. The objective is make a C++ container look and
24 // feel and behave exactly as we'd expect a Python container.
32 // get_item(Container& container, index_type i);
35 // get_slice(Container& container, index_type from, index_type to);
38 // set_item(Container& container, index_type i, data_type const& v);
42 // Container& container, index_type from,
48 // set_slice(Container& container, index_type from,
53 // delete_item(Container& container, index_type i);
56 // delete_slice(Container& container, index_type from, index_type to);
59 // size(Container& container);
[all …]
Dmap_indexing_suite.hpp17 template <class Container, bool NoProxy, class DerivedPolicies>
22 template <class Container, bool NoProxy>
24 : public map_indexing_suite<Container,
25 NoProxy, final_map_derived_policies<Container, NoProxy> > {};
45 class Container,
48 = detail::final_map_derived_policies<Container, NoProxy> >
51 Container
55 , typename Container::value_type::second_type
56 , typename Container::key_type
57 , typename Container::key_type
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/tests/rules/
Dno-dynamic-delete.test.ts17 const container: { [i: string]: 0 } = {};
18 delete container.aaa;
21 const container: { [i: string]: 0 } = {};
22 delete container.delete;
25 const container: { [i: string]: 0 } = {};
26 delete container[7];
29 const container: { [i: string]: 0 } = {};
30 delete container[-7];
33 const container: { [i: string]: 0 } = {};
34 delete container[+7];
[all …]
/third_party/boost/libs/python/doc/reference/
Dindexing.qbk5 …ml Emulating container types]) using `Boost.Python` is non trivial. There are a lot of issues to c…
9 * Make indexable C++ containers behave exactly as one would expect a Python container to behave.
10 * Provide default reference semantics for container element indexing (`__getitem__`) such that c[i]…
19 …rom `__getitem__` such that subsequent adds and deletes to and from the container will not result …
21 * Accept Python container arguments (e.g. `lists`, `tuples`) wherever appropriate.
27container look and feel and behave exactly as we'd expect a Python container. The class automatica…
39container. This method should return a new iterator object that can iterate over all the objects i…
61 XVec is now a full-fledged Python container (see the example in full, along with its python test).
77 … in the `NoProxy` template parameter. XMap is now a full-fledged Python container (see the example…
83 [[Container][A class type][ The container type to be wrapped to Python. ][]]
[all …]
/third_party/boost/libs/phoenix/test/container/
Dcontainer_tests.hpp13 #include <boost/phoenix/stl/container/container.hpp>
70 template <typename Container>
71 void test_assign(Container c) in test_assign()
75 typename Container::size_type count = 2; in test_assign()
76 typename Container::const_iterator first = c.begin(); in test_assign()
77 typename Container::const_iterator second = first; in test_assign()
78 typename Container::value_type value = *first; in test_assign()
88 cerr << "Failed " << typeid(Container).name() << " test_assign 1\n"; in test_assign()
93 Container const const_c = c; in test_assign()
98 template <typename Container>
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dframework_test.dart69 Container(
73 Container(
86 '- Container-[<1>]\n'
87 '- Container-[<2>]\n'
99 Container(
102 Container(
105 Container(
114 Container(
118 Container(
132 '- Container-[<1>]\n'
[all …]
Dlist_view_correction_test.dart18 Container(height: 400.0, child: const Text('1')),
19 Container(height: 400.0, child: const Text('2')),
20 Container(height: 400.0, child: const Text('3')),
21 Container(height: 400.0, child: const Text('4')),
22 Container(height: 400.0, child: const Text('5')),
23 Container(height: 400.0, child: const Text('6')),
41 Container(height: 200.0, child: const Text('1')),
42 Container(height: 400.0, child: const Text('2')),
43 Container(height: 400.0, child: const Text('3')),
44 Container(height: 400.0, child: const Text('4')),
[all …]
/third_party/boost/libs/spirit/test/x3/
Dcontainer_support.cpp64 template <typename Container> in BOOST_SPIRIT_DEFINE()
69 Container container; in BOOST_SPIRIT_DEFINE() local
70 Container const compare {{"k1", "v1"}, {"k2", "v2"}}; in BOOST_SPIRIT_DEFINE()
73 BOOST_TEST(test_attr("k1=v1,k2=v2,k2=v3", rule, container)); in BOOST_SPIRIT_DEFINE()
74 BOOST_TEST(container.size() == 2); in BOOST_SPIRIT_DEFINE()
75 BOOST_TEST(container == compare); in BOOST_SPIRIT_DEFINE()
79 container.clear(); in BOOST_SPIRIT_DEFINE()
80 BOOST_TEST(test_attr("k1=v1,k2=v2,k2=v3", seq_rule, container)); in BOOST_SPIRIT_DEFINE()
82 // test parsing container into container in BOOST_SPIRIT_DEFINE()
84 container.clear(); in BOOST_SPIRIT_DEFINE()
[all …]
/third_party/boost/libs/container/proj/vc7ide/
Dcontainer.vcproj74 OutputFile="$(OutDir)/container.lib"/>
99 Name="container"
102 RelativePath="..\..\..\..\boost\container\adaptive_pool.hpp">
105 RelativePath="..\..\..\..\boost\container\allocator.hpp">
108 RelativePath="..\..\..\..\boost\container\allocator_traits.hpp">
111 RelativePath="..\..\..\..\boost\container\container_fwd.hpp">
114 RelativePath="..\..\..\..\boost\container\deque.hpp">
117 RelativePath="..\..\..\..\boost\container\flat_map.hpp">
120 RelativePath="..\..\..\..\boost\container\flat_set.hpp">
123 RelativePath="..\..\..\..\boost\container\list.hpp">
[all …]
/third_party/gn/src/base/
Dstl_util.h31 template <typename Container, typename Predicate>
32 void IterateAndEraseIf(Container& container, Predicate pred) { in IterateAndEraseIf() argument
33 for (auto it = container.begin(); it != container.end();) { in IterateAndEraseIf()
35 it = container.erase(it); in IterateAndEraseIf()
78 // Returns true if the container is sorted.
79 template <typename Container>
80 bool STLIsSorted(const Container& cont) { in STLIsSorted()
81 // Note: Use reverse iterator on container to ensure we only require in STLIsSorted()
84 std::less<typename Container::value_type>()) == in STLIsSorted()
122 // Returns true if the sorted container |a1| contains all elements of the sorted
[all …]
/third_party/boost/boost/python/suite/indexing/detail/
Dindexing_suite_detail.hpp44 // The proxy_group class holds a vector of container element
45 // proxies. First, what is a container element proxy? A container
47 // a container and an index (see container_element, for details).
128 // note: this cannot be called when container is not sliceable in erase()
142 // note: this cannot be called when container is not sliceable in replace()
243 // proxy_links holds a map of Container pointers (keys)
248 template <class Proxy, class Container>
253 typedef std::map<Container*, proxy_group<Proxy> > links_t;
270 add(PyObject* prox, Container& container) in add() argument
273 links[&container].add(prox); in add()
[all …]
/third_party/boost/libs/iterator/doc/quickbook/
Dshared_container_iterator.qbk1 [section:shared_container Shared Container Iterator]
5 The purpose of the shared container iterator is to attach the lifetime
6 of a container to the lifetime of its iterators. In other words, the
7 container will not be deleted until after all its iterators are
8 destroyed. The shared container iterator is typically used to
15 The shared container iterator augments an iterator over a shared
16 container. It maintains a reference count on the shared container. If
17 only shared container iterators hold references to the container, the
18 container's lifetime will end when the last shared container iterator
19 over it is destroyed. In any case, the shared container is guaranteed
[all …]
/third_party/boost/libs/range/test/test_driver/
Drange_return_test_driver.hpp28 template< class Container, class Iterator >
30 Container& test, in test()
31 Container& reference, in test()
45 template< class Container, class Iterator >
47 Container& test, in test()
48 Container& reference, in test()
66 template< class Container, class Iterator >
68 Container& test, in test()
69 Container& reference, in test()
95 template< class Container, class Iterator >
[all …]
/third_party/boost/boost/
Dshared_container_iterator.hpp18 template <typename Container>
20 shared_container_iterator<Container>,
21 typename Container::iterator> {
24 shared_container_iterator<Container>,
25 typename Container::iterator> super_t;
27 typedef typename Container::iterator iterator_t;
28 typedef boost::shared_ptr<Container> container_ref_t;
40 template <typename Container>
41 inline shared_container_iterator<Container>
42 make_shared_container_iterator(typename Container::iterator iter, in make_shared_container_iterator()
[all …]
/third_party/typescript/tests/baselines/reference/
DintersectionReductionStrict.types258 type Container<Type extends string> = {
259 >Container : Container<Type>
265 const f2 = (t: Container<"a"> | (Container<"b"> & Container<"c">)): Container<"a"> => t;
266 >f2 : (t: Container<"a"> | (Container<"b"> & Container<"c">)) => Container<"a">
267 >(t: Container<"a"> | (Container<"b"> & Container<"c">)): Container<"a"> => t : (t: Container<"a"> …
268 >t : Container<"a">
269 >t : Container<"a">
271 const f3 = (t: Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<…
272 >f3 : (t: Container<"a"> | (Container<"b"> & { dataB: boolean;} & Container<"a">)) => Container<…
273Container<"a"> | (Container<"b"> & { dataB: boolean } & Container<"a">)): Container<"a"> => t : (t…
[all …]
/third_party/boost/boost/thread/concurrent_queues/
Dsync_deque.hpp32 template <class ValueType, class Container = csbl::devector<ValueType> >
34 : public detail::sync_queue_base<ValueType, Container >
36 typedef detail::sync_queue_base<ValueType, Container > super;
105 template <class ValueType, class Container>
106 sync_deque<ValueType, Container>::sync_deque() : in sync_deque()
111 // template <class ValueType, class Container>
113 // explicit sync_deque<ValueType, Container>::sync_deque(Range range) :
133 template <class ValueType, class Container>
134 sync_deque<ValueType, Container>::~sync_deque() in ~sync_deque()
138 template <class ValueType, class Container>
[all …]
Dsync_queue.hpp32 template <class ValueType, class Container = csbl::devector<ValueType> >
34 : public detail::sync_queue_base<ValueType, Container >
36 typedef detail::sync_queue_base<ValueType, Container > super;
105 template <class ValueType, class Container>
106 sync_queue<ValueType, Container>::sync_queue() : in sync_queue()
111 // template <class ValueType, class Container>
113 // explicit sync_queue<ValueType, Container>::sync_queue(Range range) :
133 template <class ValueType, class Container>
134 sync_queue<ValueType, Container>::~sync_queue() in ~sync_queue()
138 template <class ValueType, class Container>
[all …]
/third_party/boost/libs/range/test/algorithm_test/
Dunique.cpp33 template< class Container >
34 BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type
35 test_iter(Container& cont) in test_iter()
45 template< class Container, class Policy >
46 BOOST_DEDUCED_TYPENAME boost::range_return<Container,return_type>::type
47 operator()(Policy&, Container& cont) in operator ()()
49 … typedef BOOST_DEDUCED_TYPENAME boost::range_return<Container,return_type>::type result_t; in operator ()()
51 Container cont2(cont); in operator ()()
64 template<typename Container>
73 Container, result_type
[all …]
Dmin_element.cpp29 template< class Container >
30 BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type
31 test_iter(Container& cont) in test_iter()
33 typedef BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type iter_t; in test_iter()
42 template< class Container, class Policy >
43 BOOST_DEDUCED_TYPENAME boost::range_return<Container,return_type>::type
44 operator()(Policy&, Container& cont) in operator ()()
46 … typedef BOOST_DEDUCED_TYPENAME boost::range_return<Container,return_type>::type result_t; in operator ()()
53 template< class Container >
54 BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type
[all …]
Dmax_element.cpp29 template< class Container >
30 BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type
31 test_iter(Container& cont) in test_iter()
33 typedef BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type iter_t; in test_iter()
43 template<class Container, class Policy>
44 BOOST_DEDUCED_TYPENAME boost::range_return<Container,return_type>::type
45 operator()(Policy&, Container& cont) in operator ()()
47 … typedef BOOST_DEDUCED_TYPENAME boost::range_return<Container,return_type>::type result_t; in operator ()()
55 template< class Container >
56 BOOST_DEDUCED_TYPENAME boost::range_iterator<Container>::type
[all …]
/third_party/boost/boost/spirit/home/qi/detail/
Dpass_container.hpp16 #include <boost/spirit/home/support/container.hpp>
41 // container attribute needs to be passed through to the current component
42 // or of we need to split the container by passing along instances of its
46 // sequence nor a container, we will pass through the provided container
48 template <typename Container, typename ValueType, typename Attribute
60 template <typename Container, typename ValueType, typename Attribute
64 negate_weak_substitute_if_not<Sequence, Attribute, Container>
68 // If the value type of the container is not a Fusion sequence, we pass
69 // through the container if each of the elements of the Attribute
70 // sequence is compatible with either the container or its value type.
[all …]
/third_party/boost/boost/spirit/home/karma/detail/
Dpass_container.hpp16 #include <boost/spirit/home/support/container.hpp>
46 // container attribute needs to be passed through to the current component
47 // or of we need to split the container by passing along instances of its
51 // sequence nor a container, we will pass through the provided container
53 template <typename Container, typename ValueType, typename Attribute
65 template <typename Container, typename ValueType, typename Attribute
69 negate_weak_substitute_if_not<Sequence, Container, Attribute>
73 // If the value type of the container is not a Fusion sequence, we pass
74 // through the container if each of the elements of the Attribute
75 // sequence is compatible with either the container or its value type.
[all …]
/third_party/boost/boost/heap/detail/
Dordered_adaptor_iterator.hpp1 // boost heap: ordered iterator helper classes for container adaptors
24 /* ordered iterator helper classes for container adaptors
59 const ContainerType * container; member
61 compare_by_heap_value (const ContainerType * container, ValueCompare const & cmp): in compare_by_heap_value()
62 ValueCompare(cmp), container(container) in compare_by_heap_value()
67 BOOST_ASSERT(lhs <= Dispatcher::max_index(container)); in operator ()()
68 BOOST_ASSERT(rhs <= Dispatcher::max_index(container)); in operator ()()
69 return ValueCompare::operator()(Dispatcher::get_internal_value(container, lhs), in operator ()()
70 Dispatcher::get_internal_value(container, rhs)); in operator ()()
74 const ContainerType * container; member in boost::heap::detail::ordered_adaptor_iterator
[all …]
/third_party/boost/libs/container/test/
Dnull_iterators_test.cpp7 // See http://www.boost.org/libs/container for documentation.
11 #include <boost/container/vector.hpp>
12 #include <boost/container/deque.hpp>
13 #include <boost/container/stable_vector.hpp>
14 #include <boost/container/static_vector.hpp>
15 #include <boost/container/string.hpp>
16 #include <boost/container/list.hpp>
17 #include <boost/container/slist.hpp>
18 #include <boost/container/map.hpp>
19 #include <boost/container/set.hpp>
[all …]

12345678910>>...193