#include <magic_enum_containers.hpp>
Classes | |
struct | Getter |
struct | Predicate |
Public Types | |
using | const_iterator = detail::FilteredIterator< const set *, const E *, Getter, Predicate > |
using | const_pointer = const value_type * |
using | const_reference = const value_type & |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | container_type = bitset< E, index_type > |
using | difference_type = std::ptrdiff_t |
using | iterator = detail::FilteredIterator< const set *, const E *, Getter, Predicate > |
using | key_compare = Cmp |
using | key_type = E |
using | pointer = value_type * |
using | reference = value_type & |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | size_type = std::size_t |
using | value_compare = Cmp |
using | value_type = E |
Public Member Functions | |
constexpr const_iterator | begin () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
constexpr void | clear () noexcept |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, bool > | contains (const K &x) const noexcept |
constexpr bool | contains (const key_type &key) const noexcept |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, size_type > | count (const K &x) const |
constexpr size_type | count (const key_type &key) const noexcept |
constexpr const_reverse_iterator | crbegin () const noexcept |
constexpr const_reverse_iterator | crend () const noexcept |
template<typename... Args> | |
constexpr std::pair< iterator, bool > | emplace (Args &&... args) noexcept |
template<typename... Args> | |
constexpr iterator | emplace_hint (const_iterator, Args &&... args) noexcept |
constexpr bool | empty () const noexcept |
constexpr const_iterator | end () const noexcept |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, std::pair< const_iterator, const_iterator > > | equal_range (const K &x) const noexcept |
constexpr std::pair< const_iterator, const_iterator > | equal_range (const key_type &key) const noexcept |
constexpr size_type | erase (const key_type &key) noexcept |
constexpr iterator | erase (const_iterator first, const_iterator last) noexcept |
constexpr iterator | erase (const_iterator pos) noexcept |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, size_type > | erase (K &&x) noexcept |
template<typename Pred > | |
size_type | erase_if (Pred pred) |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, const_iterator > | find (const K &x) const |
constexpr const_iterator | find (const key_type &key) const noexcept |
constexpr std::pair< iterator, bool > | insert (const value_type &value) noexcept |
constexpr iterator | insert (const_iterator hint, value_type &&value) noexcept |
constexpr iterator | insert (const_iterator, const value_type &value) noexcept |
template<typename InputIt > | |
constexpr void | insert (InputIt first, InputIt last) noexcept |
constexpr void | insert (std::initializer_list< value_type > ilist) noexcept |
constexpr std::pair< iterator, bool > | insert (value_type &&value) noexcept |
constexpr key_compare | key_comp () const |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, const_iterator > | lower_bound (const K &x) const noexcept |
constexpr const_iterator | lower_bound (const key_type &key) const noexcept |
constexpr size_type | max_size () const noexcept |
constexpr set & | operator= (const set &) noexcept=default |
constexpr set & | operator= (set &&) noexcept=default |
constexpr set & | operator= (std::initializer_list< E > ilist) |
constexpr const_reverse_iterator | rbegin () const noexcept |
constexpr const_reverse_iterator | rend () const noexcept |
constexpr | set () noexcept=default |
constexpr | set (const set &) noexcept=default |
template<typename InputIt > | |
constexpr | set (InputIt first, InputIt last) |
constexpr | set (set &&) noexcept=default |
constexpr | set (std::initializer_list< E > ilist) |
template<typename V , std::enable_if_t< std::is_same_v< V, E > &&magic_enum::detail::subtype_v< V >==magic_enum::detail::enum_subtype::flags, int > = 0> | |
constexpr | set (V starter) |
constexpr size_type | size () const noexcept |
void | swap (set &other) noexcept |
template<typename K , typename KC = key_compare> | |
constexpr std::enable_if_t< detail::is_transparent_v< KC >, const_iterator > | upper_bound (const K &x) const noexcept |
constexpr const_iterator | upper_bound (const key_type &key) const noexcept |
constexpr value_compare | value_comp () const |
Private Types | |
using | index_type = detail::indexing< E, Cmp > |
Private Attributes | |
container_type | a |
std::size_t | s = 0 |
Friends | |
constexpr friend bool | operator!= (const set &lhs, const set &rhs) noexcept |
constexpr friend bool | operator< (const set &lhs, const set &rhs) noexcept |
constexpr friend bool | operator<= (const set &lhs, const set &rhs) noexcept |
constexpr friend bool | operator== (const set &lhs, const set &rhs) noexcept |
constexpr friend bool | operator> (const set &lhs, const set &rhs) noexcept |
constexpr friend bool | operator>= (const set &lhs, const set &rhs) noexcept |
Definition at line 841 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::const_iterator = detail::FilteredIterator<const set*, const E*, Getter, Predicate> |
Definition at line 863 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::const_pointer = const value_type* |
Definition at line 861 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::const_reference = const value_type& |
Definition at line 859 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 865 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::container_type = bitset<E, index_type> |
Definition at line 851 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::difference_type = std::ptrdiff_t |
Definition at line 855 of file magic_enum_containers.hpp.
|
private |
Definition at line 842 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::iterator = detail::FilteredIterator<const set*, const E*, Getter, Predicate> |
Definition at line 862 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::key_compare = Cmp |
Definition at line 856 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::key_type = E |
Definition at line 852 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::pointer = value_type* |
Definition at line 860 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::reference = value_type& |
Definition at line 858 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 864 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::size_type = std::size_t |
Definition at line 854 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::value_compare = Cmp |
Definition at line 857 of file magic_enum_containers.hpp.
using magic_enum::containers::set< E, Cmp >::value_type = E |
Definition at line 853 of file magic_enum_containers.hpp.
|
constexprdefaultnoexcept |
|
inlineconstexpr |
Definition at line 870 of file magic_enum_containers.hpp.
|
inlineconstexpr |
Definition at line 876 of file magic_enum_containers.hpp.
|
inlineexplicitconstexpr |
Definition at line 882 of file magic_enum_containers.hpp.
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Definition at line 902 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 910 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 912 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 928 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1043 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1040 of file magic_enum_containers.hpp.
|
inlineconstexpr |
Definition at line 1015 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1012 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 918 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 920 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 967 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 972 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 922 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 906 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1050 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1047 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 987 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 981 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 976 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 998 of file magic_enum_containers.hpp.
|
inline |
Definition at line 1112 of file magic_enum_containers.hpp.
|
inlineconstexpr |
Definition at line 1031 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1023 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 933 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 951 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 949 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 954 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 960 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 947 of file magic_enum_containers.hpp.
|
inlineconstexpr |
Definition at line 1081 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1063 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1054 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 926 of file magic_enum_containers.hpp.
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexpr |
Definition at line 896 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 914 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 916 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 924 of file magic_enum_containers.hpp.
|
inlinenoexcept |
Definition at line 1006 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1076 of file magic_enum_containers.hpp.
|
inlineconstexprnoexcept |
Definition at line 1068 of file magic_enum_containers.hpp.
|
inlineconstexpr |
Definition at line 1083 of file magic_enum_containers.hpp.
|
friend |
Definition at line 1087 of file magic_enum_containers.hpp.
|
friend |
Definition at line 1089 of file magic_enum_containers.hpp.
|
friend |
Definition at line 1105 of file magic_enum_containers.hpp.
|
friend |
Definition at line 1085 of file magic_enum_containers.hpp.
|
friend |
Definition at line 1107 of file magic_enum_containers.hpp.
|
friend |
Definition at line 1109 of file magic_enum_containers.hpp.
|
private |
Definition at line 1125 of file magic_enum_containers.hpp.
|
private |
Definition at line 1126 of file magic_enum_containers.hpp.