mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
16 lines
291 B
C++
16 lines
291 B
C++
#ifndef __REVERSE_H__
|
|
#define __REVERSE_H__
|
|
|
|
#include <string>
|
|
|
|
/**
|
|
* Trivial class whose only function is to reverse a string.
|
|
* Should use std::reverse instead but want to have example with own class
|
|
*/
|
|
class Reverse
|
|
{
|
|
public:
|
|
std::string reverse(std::string& toReverse);
|
|
};
|
|
#endif
|