welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
welder::detail::include_spec Struct Reference

The stored form of an include mark: the languages a member is opted into. More...

#include <welder/annotations.hpp>

Public Member Functions

template<class... Ls>
consteval include_spec operator() (Ls... ls) const
 Scope the inclusion to specific languages.

Public Attributes

unsigned mask = 0
 The languages to include for; 0 == all languages.

Detailed Description

The stored form of an include mark: the languages a member is opted into.

Meaningful under policy::opt_in. Usable bare (all languages) or scoped, like exclude_spec.

Definition at line 172 of file annotations.hpp.

Member Function Documentation

◆ operator()()

template<class... Ls>
include_spec welder::detail::include_spec::operator() ( Ls... ls) const
inlineconsteval

Scope the inclusion to specific languages.

Template Parameters
Lsthe language enum types (deduced).
Parameters
lsthe languages to include for.
Returns
a scoped include_spec.

Definition at line 180 of file annotations.hpp.

References welder::lang_mask().

Member Data Documentation

◆ mask

unsigned welder::detail::include_spec::mask = 0

The languages to include for; 0 == all languages.

Definition at line 173 of file annotations.hpp.


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