diff options
author | Matt <MattPD@users.noreply.github.com> | 2015-07-23 15:50:48 +0200 |
---|---|---|
committer | Matt <MattPD@users.noreply.github.com> | 2015-07-23 15:50:48 +0200 |
commit | aee594ecbb88fbd454d4b8f4ef4814fd8a548943 (patch) | |
tree | 1cebd65e1aa0a1db6e289e7af1083365229dfc39 /Ix/CPP/src | |
parent | e9af7aeb885a89db98c5e9f2353ea0622256b06c (diff) | |
download | RxCpp-aee594ecbb88fbd454d4b8f4ef4814fd8a548943.tar.gz |
Update linq.hpp
Diffstat (limited to 'Ix/CPP/src')
-rw-r--r-- | Ix/CPP/src/cpplinq/linq.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Ix/CPP/src/cpplinq/linq.hpp b/Ix/CPP/src/cpplinq/linq.hpp index f5bafb9..f7a6a8b 100644 --- a/Ix/CPP/src/cpplinq/linq.hpp +++ b/Ix/CPP/src/cpplinq/linq.hpp @@ -112,7 +112,7 @@ /// /// query.count([pred]) /// =================== -/// - Result: size_t +/// - Result: std::size_t /// /// _TODO: should use inner container's iterator distance type instead._ /// @@ -331,7 +331,7 @@ public: // TODO: distinct() // TODO: distinct(cmp) - reference_type element_at(size_t ix) const { + reference_type element_at(std::size_t ix) const { auto cur = c.get_cursor(); while(ix && !cur.empty()) { cur.inc(); @@ -341,7 +341,7 @@ public: else { return cur.get(); } } - element_type element_at_or_default(size_t ix) const { + element_type element_at_or_default(std::size_t ix) const { auto cur = c.get_cursor(); while(ix && !cur.empty()) { cur.inc(); @@ -464,7 +464,7 @@ public: // TODO: single / single_or_default - linq_driver<linq_skip<Collection>> skip(size_t n) const { + linq_driver<linq_skip<Collection>> skip(std::size_t n) const { return linq_skip<Collection>(c, n); } @@ -472,7 +472,7 @@ public: // TODO: sum - linq_driver<linq_take<Collection>> take(size_t n) const { + linq_driver<linq_take<Collection>> take(std::size_t n) const { return linq_take<Collection>(c, n); } @@ -503,7 +503,7 @@ public: linq_driver& operator=(const linq_driver<TC2>& other) { c = other.c; return *this; } typename std::iterator_traits<iterator>::reference - operator[](size_t ix) const { + operator[](std::size_t ix) const { return *(begin()+=ix); } |