mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
10850c0ec7
refactored the rendering process
35 lines
456 B
C++
35 lines
456 B
C++
#pragma once
|
|
|
|
#include "boost/noncopyable.hpp"
|
|
|
|
namespace chatterino {
|
|
namespace util {
|
|
template <typename T>
|
|
class Property final : boost::noncopyable
|
|
{
|
|
public:
|
|
Property()
|
|
{
|
|
}
|
|
|
|
Property(const T &_value)
|
|
: value(_value)
|
|
{
|
|
}
|
|
|
|
T &operator=(const T &f)
|
|
{
|
|
return value = f;
|
|
}
|
|
|
|
operator T const &() const
|
|
{
|
|
return value;
|
|
}
|
|
|
|
protected:
|
|
T value;
|
|
};
|
|
}
|
|
}
|