25 lines
553 B
C++
25 lines
553 B
C++
#pragma once
|
|
|
|
#include "tl/detail/prologue.h"
|
|
#include "tl/type_traits.h"
|
|
#include "tl/iterator.h"
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
namespace tl
|
|
{
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// for_each()
|
|
//
|
|
// Container-based version of the <algorithm> `std::for_each()` function to
|
|
// apply a function to a container's elements.
|
|
template <typename C, typename Function>
|
|
decay_t<Function> for_each(C&& c, Function&& f) noexcept;
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
} // end namespace tl
|