MCPcopy Create free account
hub / github.com/SheafificationOfG/based-cpp / BoundVar

Class BoundVar

gil/std.impl.hpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101};
102
103template <typename Name, typename Value> struct BoundVar {
104 Name name;
105 Value value;
106
107 constexpr operator Value() const noexcept { return value; }
108 constexpr auto operator&() const noexcept { return Ref{name}; }
109 constexpr auto operator*() const noexcept { return value; }
110 constexpr auto operator[](auto... params) const noexcept {
111 return Var{bundle::Bundle{name, params...}};
112 }
113};
114
115template <typename Var, typename Expr> struct Assign {
116 Var var;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected