FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
freetensor::RandCondGuard< T, Hasher, Comparator > Class Template Reference

#include <rand_cond.h>

Public Member Functions

 RandCondGuard (RandCondStack &stack, const std::string &name, const T &value)
 
 ~RandCondGuard ()
 

Detailed Description

template<class T, class Hasher = std::hash<T>, class Comparator = std::equal_to<T>>
class freetensor::RandCondGuard< T, Hasher, Comparator >

RAII guard to add a RandCond to a RandCondStack

Constructor & Destructor Documentation

◆ RandCondGuard()

template<class T , class Hasher = std::hash<T>, class Comparator = std::equal_to<T>>
freetensor::RandCondGuard< T, Hasher, Comparator >::RandCondGuard ( RandCondStack stack,
const std::string &  name,
const T &  value 
)
inline

◆ ~RandCondGuard()

template<class T , class Hasher = std::hash<T>, class Comparator = std::equal_to<T>>
freetensor::RandCondGuard< T, Hasher, Comparator >::~RandCondGuard ( )
inline

The documentation for this class was generated from the following file: