ZeroTierOne/ext/libpqxx-7.7.3/include/pqxx/internal/gates/result-connection.hxx
2022-06-24 10:12:36 -07:00

15 lines
354 B
C++

#include <pqxx/internal/callgate.hxx>
namespace pqxx::internal::gate
{
class PQXX_PRIVATE result_connection : callgate<result const>
{
friend class pqxx::connection;
result_connection(reference x) : super(x) {}
operator bool() const { return bool(home()); }
bool operator!() const { return not home(); }
};
} // namespace pqxx::internal::gate