Add trivial wxVectorContains() helper
This is nicer than using std::find() when only a test for presence is required.
This commit is contained in:
@@ -307,3 +307,13 @@ public:
|
||||
*/
|
||||
template<typename T>
|
||||
void wxVectorSort(wxVector<T>& v);
|
||||
|
||||
/**
|
||||
Returns true if the vector contains the given value.
|
||||
|
||||
This is just a trivial wrapper around std::find().
|
||||
|
||||
@since 3.1.5
|
||||
*/
|
||||
template<typename T>
|
||||
bool wxVectorContains(const wxVector<T>& v, const T& value);
|
||||
|
Reference in New Issue
Block a user