How can i rewrite set::inser() function,using a vector::insert() : class Set { std::vector set; public: void insert(const T& t) { set.insert(set.end(), t); } I tried to insert them at the end,but it wont work corectly.