Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
stout provides a Set type which wraps a std::set. As only addition it provides new constructors,
Set(const T& t1); Set(const T& t1, const T& t2); Set(const T& t1, const T& t2, const T& t3); Set(const T& t1, const T& t2, const T& t3, const T& t4);
which simplified creation of a Set from (up to four) known elements.
C++11 brought std::initializer_list which can be used to create a std::set from an arbitrary number of elements, so it appears that it should be possible to retire Set.