CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
AppendListTransaction< T > Class Template Reference

Optionally rollback one or many append operations in one go. More...

#include <cc/AppendList>

Public Member Functions

 AppendListTransaction (AppendList< T > &list)
 Create a transaction for list.
 
void rollback ()
 Rollback append operations.
 
bool isEmpty () const
 Check if this transaction does not contain any append operations.
 

Detailed Description

template<class T>
class cc::AppendListTransaction< T >

Optionally rollback one or many append operations in one go.

Constructor & Destructor Documentation

◆ AppendListTransaction()

template<class T >
AppendListTransaction ( AppendList< T > & list)

Create a transaction for list.

Member Function Documentation

◆ rollback()

template<class T >
void rollback ( )

Rollback append operations.

◆ isEmpty()

template<class T >
bool isEmpty ( ) const

Check if this transaction does not contain any append operations.