rename header files from *.h to *.hpp

This commit is contained in:
Rasmus Karlsson
2017-06-11 09:31:45 +02:00
parent 961f22819e
commit 1c6ff37e76
104 changed files with 327 additions and 326 deletions
+38
View File
@@ -0,0 +1,38 @@
#pragma once
#include <memory>
#include <vector>
namespace chatterino {
namespace messages {
template <typename T>
class LimitedQueueSnapshot
{
public:
LimitedQueueSnapshot(std::shared_ptr<std::vector<T>> vector, int offset, int size)
: _vector(vector)
, _offset(offset)
, _length(size)
{
}
int getSize()
{
return _length;
}
T const &operator[](int index) const
{
return _vector->at(index + _offset);
}
private:
std::shared_ptr<std::vector<T>> _vector;
int _offset;
int _length;
};
} // namespace messages
} // namespace chatterino