Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4a529cd6
Commit
4a529cd6
authored
Jun 11, 2016
by
Philipp Nordhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return reference on iterator indirection/subscript
parent
e3844e0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mat.hpp
modules/core/include/opencv2/core/mat.hpp
+2
-2
mat.inl.hpp
modules/core/include/opencv2/core/mat.inl.hpp
+2
-2
No files found.
modules/core/include/opencv2/core/mat.hpp
View file @
4a529cd6
...
@@ -2880,9 +2880,9 @@ public:
...
@@ -2880,9 +2880,9 @@ public:
//! copy operator
//! copy operator
MatConstIterator_
&
operator
=
(
const
MatConstIterator_
&
it
);
MatConstIterator_
&
operator
=
(
const
MatConstIterator_
&
it
);
//! returns the current matrix element
//! returns the current matrix element
_Tp
operator
*
()
const
;
const
_Tp
&
operator
*
()
const
;
//! returns the i-th matrix element, relative to the current
//! returns the i-th matrix element, relative to the current
_Tp
operator
[](
ptrdiff_t
i
)
const
;
const
_Tp
&
operator
[](
ptrdiff_t
i
)
const
;
//! shifts the iterator forward by the specified number of elements
//! shifts the iterator forward by the specified number of elements
MatConstIterator_
&
operator
+=
(
ptrdiff_t
ofs
);
MatConstIterator_
&
operator
+=
(
ptrdiff_t
ofs
);
...
...
modules/core/include/opencv2/core/mat.inl.hpp
View file @
4a529cd6
...
@@ -2550,7 +2550,7 @@ MatConstIterator_<_Tp>& MatConstIterator_<_Tp>::operator = (const MatConstIterat
...
@@ -2550,7 +2550,7 @@ MatConstIterator_<_Tp>& MatConstIterator_<_Tp>::operator = (const MatConstIterat
}
}
template
<
typename
_Tp
>
inline
template
<
typename
_Tp
>
inline
_Tp
MatConstIterator_
<
_Tp
>::
operator
*
()
const
const
_Tp
&
MatConstIterator_
<
_Tp
>::
operator
*
()
const
{
{
return
*
(
_Tp
*
)(
this
->
ptr
);
return
*
(
_Tp
*
)(
this
->
ptr
);
}
}
...
@@ -2656,7 +2656,7 @@ MatConstIterator_<_Tp> operator - (const MatConstIterator_<_Tp>& a, ptrdiff_t of
...
@@ -2656,7 +2656,7 @@ MatConstIterator_<_Tp> operator - (const MatConstIterator_<_Tp>& a, ptrdiff_t of
}
}
template
<
typename
_Tp
>
inline
template
<
typename
_Tp
>
inline
_Tp
MatConstIterator_
<
_Tp
>::
operator
[](
ptrdiff_t
i
)
const
const
_Tp
&
MatConstIterator_
<
_Tp
>::
operator
[](
ptrdiff_t
i
)
const
{
{
return
*
(
_Tp
*
)
MatConstIterator
::
operator
[](
i
);
return
*
(
_Tp
*
)
MatConstIterator
::
operator
[](
i
);
}
}
...
...
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