Function set_of_chars

Summary

#include "breeze/text/set_of_chars.hpp"

(1) set_of_chars() noexcept

(2) explicit set_of_chars(char const *s) noexcept

(3) explicit set_of_chars(std::string const &s) noexcept

(4) template <typename InputIterator>
    set_of_chars(InputIterator begin, InputIterator end) noexcept

(5) set_of_chars(except_for, char c) noexcept

(6) set_of_chars(except_for, char const *s) noexcept

(7) set_of_chars(except_for, std::string const &s) noexcept

(8) set_of_chars(set_of_chars const &other) noexcept

Function overload

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars() noexcept

Description

Constructs an empty set.

Postcondition
is_empty()

Source

Line 67 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

explicit set_of_chars(char const *s) noexcept

Description

Constructs a set containing all and only the non-null elements of the string pointed to by s.

Precondition
s != nullptr

Source

Line 75 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

explicit set_of_chars(std::string const &s) noexcept

Description

Constructs a set containing all and only the characters in s (including null characters, if any).

Source

Line 80 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

template <typename InputIterator>
set_of_chars(InputIterator begin, InputIterator end) noexcept

Description

Constructs a set containing all and only the characters in the range [begin, end).

Source

Lines 320-325 in breeze/text/set_of_chars.hpp. Line 86 in breeze/text/set_of_chars.hpp.

template< typename InputIterator>
set_of_chars::set_of_chars( InputIterator begin, InputIterator end ) noexcept
    :   m_bits()
{
    add( begin, end ) ;
}

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars(except_for, char c) noexcept

Description

Constructs a set containing all characters except c.

Source

Line 95 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars(except_for, char const *s) noexcept

Description

Constructs a set containing all characters except the non-null characters in the string pointed to by s.

Precondition
s != nullptr

Source

Line 103 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars(except_for, std::string const &s) noexcept

Description

Constructs a set containing all characters except those in s.

Source

Line 108 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars(set_of_chars const &other) noexcept

Description

Constructs a copy of other.

Postcondition
*this == other

Source

Line 116 in breeze/text/set_of_chars.hpp.