Function add

Summary

#include "breeze/text/set_of_chars.hpp"

(1) set_of_chars & add(char c) noexcept

(2) set_of_chars & add(char const *s)

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

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

Function overload

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars & add(char c) noexcept

Description

Adds the character c to the set.

Note
No iterators are invalidated.

Source

Line 155 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

set_of_chars & add(char const *s)

Description

Adds all the non-null characters in the string pointed to by s to the set.

Precondition
s != nullptr
Note
No iterators are invalidated.

Source

Line 166 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

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

Description

Adds all the characters in s to the set.

Note
No iterators are invalidated.

Source

Line 173 in breeze/text/set_of_chars.hpp.

Synopsis

#include "breeze/text/set_of_chars.hpp"

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

Description

Adds all the characters in the range [begin, end) to the set.

Note
No iterators are invalidated.

Source

Lines 327-336 in breeze/text/set_of_chars.hpp. Line 182 in breeze/text/set_of_chars.hpp.

template< typename InputIterator >
set_of_chars &
set_of_chars::add( InputIterator begin, InputIterator end ) noexcept
{
    while ( begin != end ) {
        add( *begin ) ;
        ++ begin ;
    }
    return *this ;
}