Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

34 rindas
838 B

  1. #pragma once
  2. namespace cpphibernate {
  3. namespace mariadb {
  4. /**
  5. * @brief Helper class to manage operations on nullable types.
  6. */
  7. template<typename T_nullable, typename = void>
  8. struct nullable_helper
  9. {
  10. using nullable_type = T_nullable;
  11. using value_type = real_dataset_t<nullable_type>;
  12. /**
  13. * @brief Get a pointer to the stored value of the nullable object.
  14. */
  15. static value_type* get(const nullable_type&) = delete;
  16. /**
  17. * @brief Set the new value of the nullable object.
  18. */
  19. static value_type& set(nullable_type&, const value_type&) = delete;
  20. /**
  21. * @brief Destroy the stored value of a nullable objec (clear the nullable object).
  22. */
  23. static void clear(nullable_type&) = delete;
  24. };
  25. } }