| 220 | return *std::get_if<VariantTy>(&Type); |
| 221 | } |
| 222 | void setVariant(VariantTy &&Ty) noexcept { |
| 223 | Type.emplace<VariantTy>(std::move(Ty)); |
| 224 | } |
| 225 | |
| 226 | const ListTy &getList() const noexcept { return *std::get_if<ListTy>(&Type); } |
| 227 | void setList(ListTy &&Ty) noexcept { Type.emplace<ListTy>(std::move(Ty)); } |