12 template <typename T, typename TIter = decltype(std::begin(std::declval<T>())),
13 typename =
decltype(std::end(std::declval<T>()))>
20 bool operator!=(
const iterator &other)
const {
return iter != other.iter; }
26 auto operator*()
const {
return std::tie(i, *iter); }
28 struct iterable_wrapper
31 auto begin() {
return iterator{0, std::begin(iterable)}; }
32 auto end() {
return iterator{0, std::end(iterable)}; }
34 return iterable_wrapper{std::forward<T>(iterable)};
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
constexpr auto enumerate(T &&iterable)
Definition Ioss_Enumerate.h:14
vector3d operator*(const vector3d &lhs, double scalar)
Definition vector3d.C:59