Browse Source

extend() for initializer lists

default_compile_flags
vector-of-bool 5 years ago
parent
commit
1d34c3e529
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/dds/util.hpp

+ 5
- 0
src/dds/util.hpp View File

c.insert(c.end(), o.begin(), o.end()); c.insert(c.end(), o.begin(), o.end());
} }


template <typename Container, typename Item>
void extend(Container& c, std::initializer_list<Item> il) {
extend(c, il);
}

} // namespace dds } // namespace dds


#endif // DDS_UTIL_HPP_INCLUDED #endif // DDS_UTIL_HPP_INCLUDED

Loading…
Cancel
Save