Files
TL/include/tl/algorithm/for_each.h
T
jeanlemotan 8297b0b45f First
2024-07-02 18:06:33 +02:00

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