query/include/matador/object/collection.hpp

22 lines
366 B
C++

#ifndef COLLECTION_HPP
#define COLLECTION_HPP
#include <vector>
namespace matador::object {
template < class Type >
class collection {
public:
using value_type = Type;
void push_back(const Type& value) { data_.push_back(value); }
[[nodiscard]] size_t size() const { return data_.size(); }
private:
std::vector<Type> data_;
};
}
#endif //COLLECTION_HPP