Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
grammar::lut_chars::operator+

Return the union of two character sets.

Synopsis

Defined in header <boost/url/grammar/lut_chars.hpp>

constexpr lut_chars
operator+(
    lut_chars const& cs0,
    lut_chars const& cs1);
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 [link url.ref.boost__urls__grammar__lut_chars.lut_chars `lut_chars`] [link url.ref.boost__urls__grammar__alpha_chars `alpha_chars`](
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "abcdefghijklmnopqrstuvwxyz" );

constexpr [link url.ref.boost__urls__grammar__lut_chars.lut_chars `lut_chars`] [link url.ref.boost__urls__grammar__alnum_chars `alnum_chars`] = [link url.ref.boost__urls__grammar__alpha_chars `alpha_chars`] + "0123456789" ;
Complexity

Constant.

Return Value

The new character set.

Parameters

Name

Description

cs0

A character to join

cs1

A character to join

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext