mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
core: align cv::AutoBuffer API with std::vector/std::array
- added .data() methods - added operator[] (int i) - extend checks support to generic and debug-only cases - deprecate existed operator* ()
This commit is contained in:
committed by
Alexander Alekhin
parent
6309e28dd0
commit
135ea264ef
@@ -101,6 +101,10 @@ void check_failed_auto(const int v1, const int v2, const CheckContext& ctx)
|
||||
{
|
||||
check_failed_auto_<int>(v1, v2, ctx);
|
||||
}
|
||||
void check_failed_auto(const size_t v1, const size_t v2, const CheckContext& ctx)
|
||||
{
|
||||
check_failed_auto_<size_t>(v1, v2, ctx);
|
||||
}
|
||||
void check_failed_auto(const float v1, const float v2, const CheckContext& ctx)
|
||||
{
|
||||
check_failed_auto_<float>(v1, v2, ctx);
|
||||
@@ -147,6 +151,10 @@ void check_failed_auto(const int v, const CheckContext& ctx)
|
||||
{
|
||||
check_failed_auto_<int>(v, ctx);
|
||||
}
|
||||
void check_failed_auto(const size_t v, const CheckContext& ctx)
|
||||
{
|
||||
check_failed_auto_<size_t>(v, ctx);
|
||||
}
|
||||
void check_failed_auto(const float v, const CheckContext& ctx)
|
||||
{
|
||||
check_failed_auto_<float>(v, ctx);
|
||||
|
||||
Reference in New Issue
Block a user