MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / AddConstToPointer

Class AddConstToPointer

develop/matchit/patterns.h:218–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217 template <typename T>
218 struct AddConstToPointer
219 {
220 using type = std::conditional_t<
221 !std::is_pointer_v<T>, T,
222 std::add_pointer_t<std::add_const_t<std::remove_pointer_t<T>>>>;
223 };
224 template <typename T>
225 using AddConstToPointerT = typename AddConstToPointer<T>::type;
226

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected