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

1.6 KiB

[forward.list.syn]

23 Containers library [containers]

23.3 Sequence containers [sequences]

23.3.6 Header <forward_list> synopsis [forward.list.syn]

🔗

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