Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::IdentityMap< T > Class Template Reference

#include <util.h>

Public Member Functions

operator[] (T t) const
 

Detailed Description

template<typename T>
class operations_research::sat::IdentityMap< T >

A simple class with always IdentityMap[t] == t. This is to avoid allocating vector with std::iota() in some Apis.

Definition at line 55 of file util.h.

Member Function Documentation

◆ operator[]()

template<typename T >
T operations_research::sat::IdentityMap< T >::operator[] ( T t) const
inline

Definition at line 57 of file util.h.


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