powerd++  0.4.4
Public Member Functions | Public Attributes | List of all members
sys::io::query::contains_ftor Struct Reference

Test a string whether it contains a set of characters. More...

#include <io.hpp>

Public Member Functions

constexpr bool operator() (char const ch) const
 Check for a single character. More...
 
template<typename ... CharTs>
constexpr bool any (CharTs const ... chars) const
 Check for a set of characters if at least one is part of the string. More...
 
template<typename ... CharTs>
constexpr bool all (CharTs const ... chars) const
 Check for a set of characters if all of them are part of the string. More...
 

Public Attributes

const char *const str
 The string to ask about.
 

Detailed Description

Test a string whether it contains a set of characters.

Member Function Documentation

◆ all()

template<typename ... CharTs>
constexpr bool sys::io::query::contains_ftor::all ( CharTs const ...  chars) const
inlineconstexpr

Check for a set of characters if all of them are part of the string.

Template Parameters
CharTsThe character types
Parameters
charsThe set of characters
Returns
Whether all of the given characters are in the string

◆ any()

template<typename ... CharTs>
constexpr bool sys::io::query::contains_ftor::any ( CharTs const ...  chars) const
inlineconstexpr

Check for a set of characters if at least one is part of the string.

Template Parameters
CharTsThe character types
Parameters
charsThe set of characters
Returns
Whether at least one of the given characters is in the string

◆ operator()()

constexpr bool sys::io::query::contains_ftor::operator() ( char const  ch) const
inlineconstexpr

Check for a single character.

Parameters
chThe character to check for
Returns
Whether the given character is part of the string

The documentation for this struct was generated from the following file: