mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix code format
This commit is contained in:
parent
aa8e265188
commit
a0060119ab
31 changed files with 379 additions and 379 deletions
|
@ -369,7 +369,7 @@ namespace sprout {
|
|||
template<typename T>
|
||||
inline SPROUT_NON_CONSTEXPR T*
|
||||
get_pointer(sprout::exempt_ptr<T> const& p) SPROUT_NOEXCEPT {
|
||||
return p.get();
|
||||
return p.get();
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -18,26 +18,26 @@ namespace sprout {
|
|||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR T*
|
||||
get_pointer(T* p) SPROUT_NOEXCEPT {
|
||||
return p;
|
||||
return p;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline SPROUT_NON_CONSTEXPR T*
|
||||
get_pointer(std::auto_ptr<T> const& p) SPROUT_NOEXCEPT {
|
||||
return p.get();
|
||||
return p.get();
|
||||
}
|
||||
|
||||
#if !defined(SPROUT_NO_CXX11_SMART_PTR)
|
||||
template<typename T>
|
||||
inline SPROUT_NON_CONSTEXPR T*
|
||||
get_pointer(std::unique_ptr<T> const& p) SPROUT_NOEXCEPT {
|
||||
return p.get();
|
||||
return p.get();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
inline SPROUT_NON_CONSTEXPR T*
|
||||
get_pointer(std::shared_ptr<T> const& p) SPROUT_NOEXCEPT {
|
||||
return p.get();
|
||||
return p.get();
|
||||
}
|
||||
#endif
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue