Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext
grammar::lut_chars::operator~

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

Synopsis
constexpr lut_chars
operator~() const;
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.

Return Value

The new character set.


PrevUpHomeNext