itr
Abstract
sstd::begin()
and sstd::end()
are the definitions for SSTD iterator.
sstd::begin()
と sstd::end()
は SSTD のイテレータに利用するための定義です.
Header file
namespace sstd{
class begin;
class end;
}
Usage
- main.cpp
#include <sstd/sstd.hpp> int main(){ std::vector<int> v = {1,2,3,4,5}; std::vector<int> v_sliced = v && sstd::slice(sstd::begin(),sstd::end()); sstd::printn(v); sstd::printn(v_sliced); }
- Execution result
v = [1 2 3 4 5] v_sliced = [1 2 3 4 5]
Implementation
- Source: header only
- Header: sstd/src/definitions/itr.hpp