PMT Renovated main-branch
Partition Manager Tool is a fast, reliable, and feature-rich CLI application for Android devices that enables advanced partition operations such as backup, flashing, erasing, information retrieval, and more.
Loading...
Searching...
No Matches
Helper::ConstIfCharPointer< T > Struct Template Reference

Add the const qualifier if input type is char*. More...

#include <definations.hpp>

Public Types

using type = T
 

Related Symbols

(Note that these are not member symbols.)

template<typename T >
using ConstIfCharPointer_t = ConstIfCharPointer< T >::type
 Shorcut of ConstIfCharPointer<T>::type.
 

Detailed Description

template<typename T>
struct Helper::ConstIfCharPointer< T >

Add the const qualifier if input type is char*.

std::is_same_v<ConstIfCharPointer<char*>::type, const char*> // Equals to true.
std::is_same_v<ConstIfCharPointer<int>::type, const int> // Equals to false.
T forward(T... args)
Template Parameters
TInput type.
Note
If the type is not char*, type is directly determined as the input type.

Friends And Related Symbol Documentation

◆ ConstIfCharPointer_t

template<typename T >
template<typename T >
using ConstIfCharPointer_t = ConstIfCharPointer<T>::type
related

Shorcut of ConstIfCharPointer<T>::type.

std::is_same_v<ConstIfCharPointer_t<char*>, const char*> // Equals to true.
std::is_same_v<ConstIfCharPointer_t<int>, const int> // Equals to false.

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