22 lines
272 B
C++
22 lines
272 B
C++
#ifndef TESTS_MYSTRUCT_HPP
|
|
# define TESTS_MYSTRUCT_HPP
|
|
|
|
#include <iostream>
|
|
|
|
struct mystruct {
|
|
|
|
public:
|
|
mystruct(int data = 0);
|
|
~mystruct();
|
|
int * get_data() const;
|
|
|
|
private:
|
|
int * _val;
|
|
|
|
};
|
|
|
|
std::ostream & operator<<(std::ostream & o, mystruct const * rhs);
|
|
|
|
#endif
|
|
|