MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / make_checked

Function make_checked

extlibs/fmt/include/fmt/format.h:342–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340// Make a checked iterator to avoid MSVC warnings.
341template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
342template <typename T> checked_ptr<T> make_checked(T* p, std::size_t size) {
343 return {p, size};
344}
345#else
346template <typename T> using checked_ptr = T*;
347template <typename T> inline T* make_checked(T* p, std::size_t) { return p; }

Callers 5

reserveFunction · 0.85
appendMethod · 0.85
moveMethod · 0.85
growMethod · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected