#include <src/example.h>
Definition at line 36 of file example.h.
◆ inSort()
bool ExampleList::inSort |
( |
const Example & | ex | ) |
|
|
inline |
Definition at line 39 of file example.h.
40 {
41 auto it = std::find_if(
begin(),
end(),[&ex](
const Example &e) {
return e.
name==ex.
name; });
43 {
44 insert( std::upper_bound(
begin(),
end(), ex,
45 [](const auto &e1,const auto &e2) { return e1.name < e2.name; }
46 ), ex
47 );
48 return true;
49 }
50 return false;
51 }
DirIterator begin(DirIterator it) noexcept
DirIterator end(const DirIterator &) noexcept
References begin(), end(), and Example::name.
The documentation for this class was generated from the following file: