Files
2025-10-25 03:02:53 +03:00

1.4 KiB

[list.syn]

23 Containers library [containers]

23.3 Sequence containers [sequences]

23.3.10 Header synopsis [list.syn]

🔗

#include // see [compare.syn]#include <initializer_list> // see [initializer.list.syn]namespace std {// [list], class template listtemplate<class T, class Allocator = allocator> class list; template<class T, class Allocator>constexpr bool operator==(const list<T, Allocator>& x, const list<T, Allocator>& y); template<class T, class Allocator>constexpr synth-three-way-result operator<=>(const list<T, Allocator>& x, const list<T, Allocator>& y); template<class T, class Allocator>constexpr void swap(list<T, Allocator>& x, list<T, Allocator>& y)noexcept(noexcept(x.swap(y))); // [list.erasure], erasuretemplate<class T, class Allocator, class U = T>constexpr typename list<T, Allocator>::size_type erase(list<T, Allocator>& c, const U& value); template<class T, class Allocator, class Predicate>constexpr typename list<T, Allocator>::size_type erase_if(list<T, Allocator>& c, Predicate pred); namespace pmr {templateusing list = std::list<T, polymorphic_allocator>; }}