class_a.h 910 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //-----------------------------------------------------------------------------
  2. // boost-libs variant/libs/test/class_a.h header file
  3. // See http://www.boost.org for updates, documentation, and revision history.
  4. //-----------------------------------------------------------------------------
  5. //
  6. // Copyright (c) 2003
  7. // Eric Friedman, Itay Maman
  8. //
  9. // Distributed under the Boost Software License, Version 1.0. (See
  10. // accompanying file LICENSE_1_0.txt or copy at
  11. // http://www.boost.org/LICENSE_1_0.txt)
  12. #ifndef _CLASSA_H_INC_
  13. #define _CLASSA_H_INC_
  14. #include <iosfwd>
  15. struct class_a
  16. {
  17. ~class_a();
  18. class_a(int n = 5511);
  19. class_a(const class_a& other);
  20. class_a& operator=(const class_a& rhs);
  21. void swap(class_a& other);
  22. int get() const;
  23. private:
  24. int n_;
  25. class_a* self_p_;
  26. }; //Class_a
  27. std::ostream& operator<<(std::ostream& strm, const class_a& a);
  28. #endif //_CLASSA_H_INC_