siplasplas
Public Member Functions | List of all members
cpp::DummyAssertExpression Class Reference

Represents an assert expression when SIPLASPLAS_ASSERT() macros are disabled. More...

#include <assert.hpp>

Public Member Functions

template<typename Function >
DummyAssertExpressiononFailure (Function)
 Does nothing. More...
 
template<typename String , typename... Args>
DummyAssertExpressiondetail (String &&, Args &&...)
 Does nothing. More...
 
template<typename String , typename... Args>
DummyAssertExpressionoperator() (String &&, Args &&...)
 Does nothing. More...
 
DummyAssertExpressionnoThrow ()
 

Detailed Description

Represents an assert expression when SIPLASPLAS_ASSERT() macros are disabled.

When siplasplas assertions are disabled DummyAssertExpression objects are instanced instead, and the expression does nothing.

Member Function Documentation

§ detail()

template<typename String , typename... Args>
DummyAssertExpression& cpp::DummyAssertExpression::detail ( String &&  ,
Args &&  ... 
)
inline

Does nothing.

This function template is defined only to make siplasplas assertions compile when are disabled. It does nothing.

Returns
A reference to *this to implement the assertion expression fluent interface.

§ onFailure()

template<typename Function >
DummyAssertExpression& cpp::DummyAssertExpression::onFailure ( Function  )
inline

Does nothing.

This function template is defined only to make siplasplas assertions compile when are disabled. It does nothing.

Returns
A reference to *this to implement the assertion expression fluent interface.

§ operator()()

template<typename String , typename... Args>
DummyAssertExpression& cpp::DummyAssertExpression::operator() ( String &&  ,
Args &&  ... 
)
inline

Does nothing.

Equivalent to detail().


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