refcountedstring/Char.h

20 lines
278 B
C
Raw Normal View History

#pragma once
#include "String.h"
class String;
class StringValue;
class Char
{
private:
size_t _index;
String& _string;
public:
Char(size_t index, String& string) :_index(index), _string(string) {}
operator char() const;
Char& operator=(char other);
};