Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
gtl::STLElementDeleter< STLContainer > Class Template Reference

#include <stl_util.h>

Public Member Functions

 STLElementDeleter (STLContainer *ptr)
 
 ~STLElementDeleter ()
 

Detailed Description

template<typename STLContainer>
class gtl::STLElementDeleter< STLContainer >

RAII object that deletes elements in the given container when it goes out of scope. Like ElementDeleter (above) except that this class is templated and doesn't have a virtual destructor.

New code should prefer ElementDeleter.

Definition at line 497 of file stl_util.h.

Constructor & Destructor Documentation

◆ STLElementDeleter()

template<typename STLContainer >
gtl::STLElementDeleter< STLContainer >::STLElementDeleter ( STLContainer * ptr)
inline

Definition at line 499 of file stl_util.h.

◆ ~STLElementDeleter()

template<typename STLContainer >
gtl::STLElementDeleter< STLContainer >::~STLElementDeleter ( )
inline

Definition at line 500 of file stl_util.h.


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