Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
ODBC.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
6
7namespace Stroika::Foundation::Database::SQL::ODBC {
8
9#if qStroika_HasComponent_ODBC
10
11 /*
12 ********************************************************************************
13 ****************************** ODBC::Connection::Ptr ***************************
14 ********************************************************************************
15 */
16 inline Connection::Ptr::Ptr (const Ptr& src)
17 : Ptr{Debug::UncheckedDynamicPointerCast<IRep> (src._fRep)}
18 {
19 }
20 inline Connection::Ptr& Connection::Ptr::operator= (const Ptr& src)
21 {
22 inherited::operator= (src);
23 return *this;
24 }
25 inline Connection::Ptr& Connection::Ptr::operator= (Ptr&& src) noexcept
26 {
27 inherited::operator= (move (src));
28 return *this;
29 }
30 inline Connection::IRep* Connection::Ptr::operator->() const noexcept
31 {
32 return Debug::UncheckedDynamicPointerCast<IRep> (_fRep).get ();
33 }
34#endif
35
36}
std::shared_ptr< T > UncheckedDynamicPointerCast(const std::shared_ptr< T1 > &arg) noexcept
Produce the same result as dynamic_pointer_cast if the successful case (non-null) - with better perfo...
Definition Cast.inl:42