C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
exprtk::parser< T >::scoped_inc_dec Struct Reference

Public Member Functions

 scoped_inc_dec (std::size_t &v)
 
 ~scoped_inc_dec ()
 

Public Attributes

std::size_t & v_
 

Detailed Description

template<typename T>
struct exprtk::parser< T >::scoped_inc_dec

Definition at line 25577 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ scoped_inc_dec()

template<typename T >
exprtk::parser< T >::scoped_inc_dec::scoped_inc_dec ( std::size_t &  v)
inlineexplicit

Definition at line 25579 of file exprtk.hpp.

25580 : v_(v)
25581 { ++v_; }

References exprtk::parser< T >::scoped_inc_dec::v_.

◆ ~scoped_inc_dec()

template<typename T >
exprtk::parser< T >::scoped_inc_dec::~scoped_inc_dec ( )
inline

Definition at line 25583 of file exprtk.hpp.

25584 {
25585 assert(v_ > 0);
25586 --v_;
25587 }

References exprtk::parser< T >::scoped_inc_dec::v_.

Member Data Documentation

◆ v_

template<typename T >
std::size_t& exprtk::parser< T >::scoped_inc_dec::v_

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