blob: 239868f211c5112cbd03d76ba79372d9fdf35a0e [file] [log] [blame]
#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