Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prog2
/
labor_peldak
/
lab_10
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8733c72e
authored
May 02, 2019
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NO_ARRAY_ITERATOR_TRAITS
parent
a4346e13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
gen_array_iter3.hpp
+4
-1
vektor_test.cpp
+1
-0
No files found.
gen_array_iter3.hpp
View file @
8733c72e
...
@@ -106,8 +106,11 @@ public:
...
@@ -106,8 +106,11 @@ public:
/// iterator osztály
/// iterator osztály
/// input/output (STL::ForwardIterator) iterátorként használható
/// input/output (STL::ForwardIterator) iterátorként használható
// class iterator {
#ifdef NO_ARRAY_ITERATOR_TRAITS
class
iterator
{
#else
class
iterator
:
public
std
::
iterator
<
std
::
forward_iterator_tag
,
T
>
{
class
iterator
:
public
std
::
iterator
<
std
::
forward_iterator_tag
,
T
>
{
#endif
Array
*
p
;
// tároljuk, hogy melyik az objektumhoz tartozik az iterátor
Array
*
p
;
// tároljuk, hogy melyik az objektumhoz tartozik az iterátor
size_t
idx
;
// tároljuk az aktuális index értéket
size_t
idx
;
// tároljuk az aktuális index értéket
public:
public:
...
...
vektor_test.cpp
View file @
8733c72e
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <iostream>
#include <iostream>
#include <algorithm>
#include <algorithm>
#include <functional>
#include <iterator>
#include <iterator>
#include <iomanip>
#include <iomanip>
#include "compat.hpp"
#include "compat.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment