Files
42_INT_09_piscine_cpp/d07/ex01/headers/ClassTest.hpp

21 lines
322 B
C++

#ifndef CLASSTEST_HPP
# define CLASSTEST_HPP
# include <iostream>
class ClassTest {
public:
ClassTest() : _value("hello") {}
std::string getValue() const {return _value;}
private:
std::string _value;
};
std::ostream & operator<<(std::ostream & o, ClassTest const & rhs) {
o << rhs.getValue();
return o;
}
#endif