result-connection.hxx 431 B

1234567891011121314151617181920
  1. #include <pqxx/internal/callgate.hxx>
  2. namespace pqxx
  3. {
  4. namespace internal
  5. {
  6. namespace gate
  7. {
  8. class PQXX_PRIVATE result_connection : callgate<const result>
  9. {
  10. friend class pqxx::connection_base;
  11. result_connection(reference x) : super(x) {}
  12. operator bool() const { return bool(home()); }
  13. bool operator!() const { return not home(); }
  14. };
  15. } // namespace pqxx::internal::gate
  16. } // namespace pqxx::internal
  17. } // namespace pqxx