Lines Matching full:container
31 template <class Container, class Range>
33 Container(std::from_range, std::forward<Range>(range));
34 Container(std::from_range, std::forward<Range>(range), std::allocator<typename Container::value_type>());
37 template <template <class...> class Container, class T, class U>
40 static_assert(HasFromRangeCtr<Container<T>, InputRange<T>>);
42 static_assert(HasFromRangeCtr<Container<T>, InputRange<U>>);
44 static_assert(!HasFromRangeCtr<Container<T>, InputRange<Empty>>);
46 static_assert(!HasFromRangeCtr<Container<T>, InputRangeNotDerivedFrom>);
47 static_assert(!HasFromRangeCtr<Container<T>, InputRangeNotIndirectlyReadable>);
48 static_assert(!HasFromRangeCtr<Container<T>, InputRangeNotInputOrOutputIterator>);
56 template <template <class ...> class Container,
66 Container<T> c(std::from_range, in);
68 if constexpr (HasSize<Container<T>>) {
78 Container<T, Alloc> c(std::from_range, in, alloc);
81 if constexpr (HasSize<Container<T, Alloc>>) {
89 template <template <class ...> class Container,
97 test_sequence_container_with_input<Container, T, Iter, Sent, Alloc>(std::array{0, 5, 12, 7, -1, 8, 26}, validate);
99 test_sequence_container_with_input<Container, T, Iter, Sent, Alloc>(std::array<int, 0>{}, validate);
101 test_sequence_container_with_input<Container, T, Iter, Sent, Alloc>(std::array{5}, validate);
104 template <template <class ...> class Container>
109 [[maybe_unused]] Container<MoveOnly> c(std::from_range, in);
126 template <template <class ...> class Container>
132 [[maybe_unused]] Container<T> c(std::from_range, std::ranges::subrange(from, to));
137 template <template <class ...> class Container, class T>
146 Container<T, ThrowingAllocator<T>> c(std::from_range, in, alloc);