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

#include <arrow_operator_proxy.h>

Public Member Functions

 ArrowOperatorProxy (T value)
 
const T * operator-> () const
 

Detailed Description

template<typename T>
class operations_research::math_opt::internal::ArrowOperatorProxy< T >

Proxy used to implement operator-> on iterators that return temporary objects.

The operator-> in C++ is interpreted by a drill-down operation that looks for a pointer. It is not possible to return a value. So this class is used as a proxy to return a pointer from a value.

Definition at line 30 of file arrow_operator_proxy.h.

Constructor & Destructor Documentation

◆ ArrowOperatorProxy()

template<typename T >
operations_research::math_opt::internal::ArrowOperatorProxy< T >::ArrowOperatorProxy ( T value)
inlineexplicit

Definition at line 32 of file arrow_operator_proxy.h.

Member Function Documentation

◆ operator->()

template<typename T >
const T * operations_research::math_opt::internal::ArrowOperatorProxy< T >::operator-> ( ) const
inline

Definition at line 33 of file arrow_operator_proxy.h.


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