ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::RemovePointer< T > Struct Template Reference

This specialization allows std::remove_pointer to work with types satisfying Acts::SmartPointerConcept, similar to how it works with raw pointers. More...

#include <Acts/Utilities/PointerTraits.hpp>

Inheritance diagram for Acts::RemovePointer< T >:
[legend]
Collaboration diagram for Acts::RemovePointer< T >:
[legend]

Public Types

using type = std::remove_pointer_t<T>
 Type alias for the type pointed to by raw pointer.
using type = typename T::element_type
 Type alias for the element type pointed to by smart pointer.

Detailed Description

template<SmartPointerConcept T>
struct Acts::RemovePointer< T >

This specialization allows std::remove_pointer to work with types satisfying Acts::SmartPointerConcept, similar to how it works with raw pointers.

ordinary specialization for pointers

Member Typedef Documentation

◆ type [1/2]

template<SmartPointerConcept T>
using Acts::RemovePointer< T >::type = std::remove_pointer_t<T>

Type alias for the type pointed to by raw pointer.

◆ type [2/2]

template<SmartPointerConcept T>
using Acts::RemovePointer< T >::type = typename T::element_type

Type alias for the element type pointed to by smart pointer.