Ookii.CommandLine for C++  1.0.0
Classes | Namespaces | Functions
owned_or_borrowed_ptr.h File Reference

Provides a smart pointer that can optionally own the contained pointer. More...

#include <algorithm>
Include dependency graph for owned_or_borrowed_ptr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ookii::owned_or_borrowed_ptr< T >
 Smart pointer that may or may not own the contained pointer. More...
 

Namespaces

 ookii
 Namespace containing the core Ookii.CommandLine.Cpp types.
 

Functions

template<typename T , typename... Args>
auto ookii::make_owned_ptr (Args &&... args)
 Creates a new instance of the owned_or_borrowed_ptr that owns the contained pointer, by constructing a new object of type T with the specified arguments. More...
 
template<typename T >
void ookii::swap (owned_or_borrowed_ptr< T > &left, owned_or_borrowed_ptr< T > &right) noexcept
 Swaps two owned_or_borrowed_ptr instances. More...
 

Detailed Description

Provides a smart pointer that can optionally own the contained pointer.