mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -107,7 +107,7 @@ public:
|
|||
size_t index() const { return m_index; }
|
||||
size_t size() const { return m_xsv.headers().size(); }
|
||||
|
||||
using ConstIterator = AK::SimpleIterator<const Row, const StringView>;
|
||||
using ConstIterator = AK::SimpleIterator<const Row, StringView const>;
|
||||
using Iterator = AK::SimpleIterator<Row, StringView>;
|
||||
|
||||
constexpr ConstIterator begin() const { return ConstIterator::begin(*this); }
|
||||
|
@ -124,20 +124,26 @@ public:
|
|||
template<bool const_>
|
||||
class RowIterator {
|
||||
public:
|
||||
explicit RowIterator(const XSV& xsv, size_t init_index = 0) requires(const_)
|
||||
explicit RowIterator(const XSV& xsv, size_t init_index = 0)
|
||||
requires(const_)
|
||||
: m_xsv(const_cast<XSV&>(xsv))
|
||||
, m_index(init_index)
|
||||
{
|
||||
}
|
||||
|
||||
explicit RowIterator(XSV& xsv, size_t init_index = 0) requires(!const_)
|
||||
explicit RowIterator(XSV& xsv, size_t init_index = 0)
|
||||
requires(!const_)
|
||||
: m_xsv(xsv)
|
||||
, m_index(init_index)
|
||||
{
|
||||
}
|
||||
|
||||
Row operator*() const { return Row { m_xsv, m_index }; }
|
||||
Row operator*() requires(!const_) { return Row { m_xsv, m_index }; }
|
||||
Row operator*()
|
||||
requires(!const_)
|
||||
{
|
||||
return Row { m_xsv, m_index };
|
||||
}
|
||||
|
||||
RowIterator& operator++()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue