LLVM 22.0.0git
llvm::add_const_past_pointer< T > Struct Template Reference

If T is a pointer to X, return a pointer to const X. More...

#include "llvm/Support/type_traits.h"

Public Types

using type

Detailed Description

template<typename T>
struct llvm::add_const_past_pointer< T >

If T is a pointer to X, return a pointer to const X.

If it is not, return const T.

Definition at line 48 of file type_traits.h.

Member Typedef Documentation

◆ type

template<typename T>
using llvm::add_const_past_pointer< T >::type
Initial value:
std::conditional_t<std::is_pointer_v<T>,
const std::remove_pointer_t<T> *, const T>
#define T

Definition at line 49 of file type_traits.h.


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