| #ifndef T_SET_H | |
| #define T_SET_H | |
| #include "t_container.h" | |
| /** | |
| * A set is a lightweight container type that just wraps another data type. | |
| * | |
| * @author Mark Slee <mcslee@facebook.com> | |
| */ | |
| class t_set : public t_container { | |
| public: | |
| t_set(t_type* elem_type) : | |
| elem_type_(elem_type) {} | |
| t_type* get_elem_type() const { | |
| return elem_type_; | |
| } | |
| bool is_set() const { | |
| return true; | |
| } | |
| private: | |
| t_type* elem_type_; | |
| }; | |
| #endif |