#include <algorithm>
#include <boost/checked_delete.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
Go to the source code of this file.
Classes | |
struct | gnash::SecondElement< T > |
Retrieve the second element of a container with std::pairs. More... | |
struct | gnash::FirstElement< T > |
Retrieve the first element of a container with std::pairs. More... | |
struct | gnash::CreatePointer< T > |
Return a pointer to a type. More... | |
struct | gnash::RemovePointer< T > |
Recurse to the base type of a pointer. More... | |
struct | gnash::RemovePointer< T * > |
struct | gnash::RemovePointer< boost::intrusive_ptr< T > > |
struct | gnash::RemovePointer< boost::shared_ptr< T > > |
struct | gnash::CheckedDeleter< T > |
Delete a pointer safely. More... | |
struct | gnash::CheckedDeleter< T ** > |
struct | gnash::CheckedDeleter< T * > |
Namespaces | |
namespace | gnash |
Anonymous namespace for callbacks, local functions, event handlers etc. | |
Functions | |
template<typename Container , typename Predicate > | |
void | gnash::EraseIf (Container &c, Predicate p) |
Erase elements from an associative container based on a predicate. | |
template<typename T , size_t N> | |
size_t | gnash::arraySize (T(&)[N]) |
Get the size of an array without passing a pointer by mistake. | |
template<typename T , typename U > | |
void | gnash::foreachSecond (T begin, T end, U op) |
Call a functor on the second element of each element in a range. | |
template<typename T , typename U > | |
void | gnash::foreachFirst (T begin, T end, U op) |
Call a functor on the first element of each element in a range. | |
template<typename T > | |
void | gnash::deleteChecked (T begin, T end) |
Safely call delete on each element in a range. | |
template<typename T > | |
void | gnash::deleteSecondElements (T begin, T end) |
Safely call delete on each second element in a range of pairs. |