18 return vec.insert(std::upper_bound(vec.begin(), vec.end(), item), item);
28template <
typename F,
typename... Ts>
integer_sequence< size_t, N... > index_sequence
Definition: ranges.h:193
make_index_sequence< sizeof...(Ts)> index_sequence_for
Definition: cpp_future.h:142
static constexpr const unit_t< compound_unit< charge::coulomb, inverse< substance::mol > > > F(N_A *e)
Faraday constant.
Definition: ntcore_cpp.h:26
constexpr void for_each(F &&f, Ts &&... elems)
Calls f(i, elem) for each element of elems where i is the index of the element in elems and elem is t...
Definition: Algorithm.h:29
std::vector< T >::iterator insert_sorted(std::vector< T > &vec, T const &item)
Definition: Algorithm.h:16