summaryrefslogtreecommitdiffhomepage
path: root/compat/borrowed-ptr-fwd.hpp
blob: 3bb509d97b849d55e02f4b8a76cffa33c770a394 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
namespace floormat {

template<typename T> class bptr;

template<typename T> bool operator==(const bptr<T>& a, const bptr<T>& b) noexcept;
template<typename To, typename From> bptr<To> static_pointer_cast(const bptr<From>& p) noexcept;

template<typename T> bptr(T* ptr) -> bptr<T>;

} // namespace floormat