welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
marks.hpp
Go to the documentation of this file.
1#pragma once
2#include <meta>
3
26
27namespace welder::inline v0::rods::python {
28
30struct by_value_spec {};
31
34inline constexpr by_value_spec by_value{};
35
37consteval bool marked_by_value(std::meta::info entity) {
38 return !std::meta::annotations_of_with_type(entity, ^^by_value_spec).empty();
39}
40
41} // namespace welder::inline v0::rods::python
constexpr by_value_spec by_value
Opt a data member's container type out of the opaque-container generator — it keeps default by-value ...
Definition marks.hpp:34
consteval bool marked_by_value(std::meta::info entity)
Does entity carry a by_value mark?
Definition marks.hpp:37
The stored form of a by_value mark (a plain tag — it carries no state).
Definition marks.hpp:30