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 
13 #ifndef _CLASSA_H_INC_
14 #define _CLASSA_H_INC_
15 
16 
17 #include <iosfwd>
18 
19 struct class_a
20 {
21    ~class_a();
22    class_a(int n = 5511);
23    class_a(const class_a& other);
24 
25    class_a& operator=(const class_a& rhs);
26    void swap(class_a& other);
27 
28    int get() const;
29 
30 private:
31    int n_;
32    class_a* self_p_;
33 
34 }; //Class_a
35 
36 std::ostream& operator<<(std::ostream& strm, const class_a& a);
37 
38 
39 
40 #endif //_CLASSA_H_INC_
41