PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
ConstexprFor.h File Reference

Compile-time for loops. More...

#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  pbat
 The main namespace of the library.
 
namespace  pbat::common
 Common functionality.
 

Functions

template<class... Ts, class F>
constexpr void pbat::common::ForTypes (F &&f)
 Compile-time for loop over types.
 
template<auto... Xs, class F>
constexpr void pbat::common::ForValues (F &&f)
 Compile-time for loop over values.
 
template<auto Begin, auto End, typename F>
constexpr void pbat::common::ForRange (F &&f)
 Compile-time for loop over a range of values.
 

Detailed Description

Compile-time for loops.

Author
Quoc-Minh Ton-That (tonth.nosp@m.at.q.nosp@m.uocmi.nosp@m.nh@g.nosp@m.mail..nosp@m.com)
Date
2025-02-10