MCPcopy Create free account
hub / github.com/BowenFu/hspp / AddConstToPointer

Class AddConstToPointer

include/hspp.h:863–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861{
862 template <typename T>
863 struct AddConstToPointer
864 {
865 using type = std::conditional_t<
866 !std::is_pointer_v<T>, T,
867 std::add_pointer_t<std::add_const_t<std::remove_pointer_t<T>>>>;
868 };
869 template <typename T>
870 using AddConstToPointerT = typename AddConstToPointer<T>::type;
871

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected