operator~

Return a new character set which is the complement of another character set.

Synopsis

lut_chars operator~() noexcept;

Declared in file <boost/url/grammar/lut_chars.hpp> at line 363

Description

This function returns a new character set which contains all of the characters that are not in `*this`.

Example

This statement declares a character set containing everything but vowels:

constexpr lut_chars not_vowels = ~lut_chars( "AEIOU" "aeiou" );

Complexity

Constant.

Exception Safety

Throws nothing.