Nuspell
spellchecker
Classes | Public Types | Public Member Functions | List of all members
nuspell::v3::String_Set< CharT > Class Template Reference

A Set class backed by a string. More...

#include <structures.hxx>

Public Types

using Str = std::basic_string< CharT >
 
using traits_type = typename Str::traits_type
 
using key_type = typename Str::value_type
 
using key_compare = Char_Traits_Less_Than
 
using value_type = typename Str::value_type
 
using value_compare = key_compare
 
using allocator_type = typename Str::allocator_type
 
using pointer = typename Str::pointer
 
using const_pointer = typename Str::const_pointer
 
using reference = typename Str::reference
 
using const_reference = typename Str::const_reference
 
using size_type = typename Str::size_type
 
using difference_type = typename Str::difference_type
 
using iterator = typename Str::iterator
 
using const_iterator = typename Str::const_iterator
 
using reverse_iterator = typename Str::reverse_iterator
 
using const_reverse_iterator = typename Str::const_reverse_iterator
 

Public Member Functions

 String_Set (const Str &s)
 
 String_Set (Str &&s)
 
 String_Set (const CharT *s)
 
template<class InputIterator >
 String_Set (InputIterator first, InputIterator last)
 
 String_Set (std::initializer_list< value_type > il)
 
auto & operator= (const Str &s)
 
auto & operator= (Str &&s)
 
auto & operator= (std::initializer_list< value_type > il)
 
auto & operator= (const CharT *s)
 
auto & data () const noexcept
 
 operator const Str & () const noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
reverse_iterator rbegin () noexcept
 
const_reverse_iterator rbegin () const noexcept
 
reverse_iterator rend () noexcept
 
const_reverse_iterator rend () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
bool empty () const noexcept
 
size_type size () const noexcept
 
size_type max_size () const noexcept
 
std::pair< iterator, bool > insert (value_type x)
 
iterator insert (iterator hint, value_type x)
 
template<class InputIterator >
void insert (InputIterator first, InputIterator last)
 
void insert (std::initializer_list< value_type > il)
 
template<class... Args>
std::pair< iterator, bool > emplace (Args &&... args)
 
template<class... Args>
iterator emplace_hint (iterator hint, Args &&... args)
 
iterator erase (iterator position)
 
size_type erase (key_type x)
 
iterator erase (iterator first, iterator last)
 
void swap (String_Set &s)
 
void clear () noexcept
 
auto insert (const Str &s) -> void
 
auto & operator+= (const Str &s)
 
key_compare key_comp () const
 
value_compare value_comp () const
 
iterator find (key_type x)
 
const_iterator find (key_type x) const
 
size_type count (key_type x) const
 
iterator lower_bound (key_type x)
 
const_iterator lower_bound (key_type x) const
 
iterator upper_bound (key_type x)
 
const_iterator upper_bound (key_type x) const
 
std::pair< iterator, iterator > equal_range (key_type x)
 
std::pair< const_iterator, const_iterator > equal_range (key_type x) const
 
bool contains (key_type x) const
 
bool operator< (const String_Set &rhs) const
 
bool operator<= (const String_Set &rhs) const
 
bool operator== (const String_Set &rhs) const
 
bool operator!= (const String_Set &rhs) const
 
bool operator>= (const String_Set &rhs) const
 
bool operator> (const String_Set &rhs) const
 

Detailed Description

template<class CharT>
class nuspell::v3::String_Set< CharT >

A Set class backed by a string.

Very useful for small sets.

Has the same interface as std::set.


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