welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
welder::rod_binds_containers Concept Reference

Does rod B implement the optional bind_container hook (i.e. More...

#include <welder/containers.hpp>

Concept definition

template<class B>
requires(typename B::module_type& m, const char* s) {
B::template bind_container<std::vector<int>>(m, s);
}
Does rod B implement the optional bind_container hook (i.e.

Detailed Description

Does rod B implement the optional bind_container hook (i.e.

can it bind STL containers opaquely)? Only the Python rods do — the Lua runtimes already give containers structural reference semantics, so they never define it and a welded container alias is diagnosed for them. Detected by shape, exactly as the other optional rod hooks are (a requires-expression, so no body is instantiated).

Template Parameters
Bthe rod.

Definition at line 121 of file containers.hpp.