| 1161 | } |
| 1162 | }; |
| 1163 | class IdUtil |
| 1164 | { |
| 1165 | public: |
| 1166 | template <typename Value> |
| 1167 | constexpr static auto bindValue(ValueVariant<Type> &v, Value &&value, |
| 1168 | std::false_type /* StorePointer */) |
| 1169 | { |
| 1170 | // for constexpr |
| 1171 | v = ValueVariant<Type>{std::forward<Value>(value)}; |
| 1172 | } |
| 1173 | template <typename Value> |
| 1174 | constexpr static auto bindValue(ValueVariant<Type> &v, Value &&value, |
| 1175 | std::true_type /* StorePointer */) |
| 1176 | { |
| 1177 | v = ValueVariant<Type>{&value}; |
| 1178 | } |
| 1179 | }; |
| 1180 | |
| 1181 | using BlockVT = std::variant<Block, Block *>; |
| 1182 | BlockVT mBlock = Block{}; |
nothing calls this directly
no outgoing calls
no test coverage detected