LeviLamina
Loading...
Searching...
No Matches
brstd::flat_map< Key, T, Compare, KeyContainer, MappedContainer > Class Template Reference
Inheritance diagram for brstd::flat_map< Key, T, Compare, KeyContainer, MappedContainer >:

Public Types

using key_type = Key
using value_type = traits_t<no_mapped_container>::value_type
using mapped_type = std::conditional_t<no_mapped_container, Key, T>
using key_compare = Compare
using key_container_type = KeyContainer
using mapped_container_type = MappedContainer
using size_type = typename key_container_type::size_type
using difference_type = typename std::iterator_traits<typename key_container_type::iterator>::difference_type
using zip_iterator
using const_zip_iterator
using iterator = zip_iterator
using const_iterator = const_zip_iterator

Public Member Functions

iterator begin () noexcept
const_iterator begin () const noexcept
iterator end () noexcept
const_iterator end () const noexcept
const_iterator cbegin () const noexcept
const_iterator cend () const noexcept
iterator find (key_type const &key)
const_iterator find (key_type const &key) const

Static Public Attributes

static constexpr bool no_mapped_container = std::is_same_v<MappedContainer, ::brstd::no_mapped_container_t>

Member Typedef Documentation

◆ zip_iterator

template<typename Key, typename T, typename Compare, typename KeyContainer, typename MappedContainer>
using brstd::associative_adapter< Key, T, Compare, KeyContainer, MappedContainer >::zip_iterator
inherited
Initial value:
zip_iterator_impl<
typename key_container_type::iterator,
typename mapped_container_type::iterator,
std::conditional_t<no_mapped_container, key_type const&, std::pair<key_type const&, T&>>>

◆ const_zip_iterator

template<typename Key, typename T, typename Compare, typename KeyContainer, typename MappedContainer>
using brstd::associative_adapter< Key, T, Compare, KeyContainer, MappedContainer >::const_zip_iterator
inherited
Initial value:
zip_iterator_impl<
typename key_container_type::const_iterator,
typename mapped_container_type::const_iterator,
std::conditional_t<no_mapped_container, key_type const&, std::pair<key_type const&, T const&>>>

The documentation for this class was generated from the following file: