Skip to content
Snippets Groups Projects
Commit f94d554d authored by Jan Trávníček's avatar Jan Trávníček
Browse files

simplify linear_set

parent cd101e97
No related branches found
No related tags found
No related merge requests found
......@@ -544,8 +544,7 @@ public:
* \param il the source of values represented by initializer list
*/
void insert (std::initializer_list<T> il) {
m_data.insert ( m_data.end ( ), std::move ( il ) );
sort_unique ( );
insert ( il.begin ( ), il.end ( ) );
}
 
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment