Return the union of two character sets.

Synopsis

Declared in header </boost/url/grammar/lut_chars.hpp#L291[boost/url/grammar/lut_chars.hpp,window=blank_]>

friend
constexpr
lut_chars
operator+(
    const lut_chars& cs0,
    const lut_chars& cs1) noexcept;

Description

This function returns a new character set which contains all of the characters in cs0 as well as all of the characters in cs.

Example

This creates a character set which includes all letters and numbers

constexpr lut_chars alpha_chars(
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "abcdefghijklmnopqrstuvwxyz");

constexpr lut_chars alnum_chars = alpha_chars + "0123456789";

Complexity

Constant.