BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
erase.h File Reference

Go to the source code of this file.

Namespaces

namespace  BPMNOS
 
namespace  BPMNOS::Execution
 

Functions

template<typename T >
void BPMNOS::Execution::erase_ptr (std::vector< std::unique_ptr< T > > &container, const T *elementPtr)
 Erase a specific element from a vector of unique pointers.
 
template<typename T >
void BPMNOS::Execution::erase_ptr (std::vector< std::shared_ptr< T > > &container, const T *elementPtr)
 Erase a specific element from a vector of shared pointers.
 
template<typename T >
void BPMNOS::Execution::erase_ptr (std::vector< T * > &container, const T *elementPtr)
 Erase a specific element from a vector of pointers.
 
template<typename K , typename T , typename Comparator >
void BPMNOS::Execution::erase_pair (std::set< std::pair< K, T * >, Comparator > &container, const T *elementPtr)
 Erase a specific element from a set of key-value pairs where the value is a pointer to the element.