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

#include <stl_util.h>

Public Member Functions

 STLValueDeleter (STLContainer *ptr)
 
 ~STLValueDeleter ()
 

Detailed Description

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

RAII object that deletes the values in the given container of std::pair<>s when it goes out of scope. Like ValueDeleter (above) except that this class is templated and doesn't have a virtual destructor.

New code should prefer ValueDeleter.

Definition at line 512 of file stl_util.h.

Constructor & Destructor Documentation

◆ STLValueDeleter()

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

Definition at line 514 of file stl_util.h.

◆ ~STLValueDeleter()

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

Definition at line 515 of file stl_util.h.


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