blob: 5134f27941f3eb506c37d12c05b3100e8d3ec6ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "borrowed-ptr-fwd.hpp"
namespace floormat {
template<typename T> constexpr bptr<T>::bptr(NoInitT) noexcept {};
template<typename T> constexpr bptr<T>::bptr(std::nullptr_t) noexcept: ptr{nullptr}, blk{nullptr} {}
template<typename T> constexpr bptr<T>::bptr() noexcept: bptr{nullptr} {}
template<typename T> bptr(T* ptr) -> bptr<T>;
template<typename T, typename U>
CORRADE_ALWAYS_INLINE bptr<U> static_pointer_cast(const bptr<T>& p) noexcept
{
return p.template static_pointer_cast<U>();
}
} // namespace floormat
|