Removing using std::...

Change-Id: I584402e2a34869183c1d59071a15d97b216c52fb
This commit is contained in:
Alexander Ivanov
2023-01-11 16:51:38 +00:00
parent e1ca3302af
commit 53df5ddcfd
47 changed files with 479 additions and 608 deletions
+6 -8
View File
@@ -38,8 +38,6 @@
namespace ceres::internal {
using std::vector;
TEST(ArrayUtils, IsArrayValid) {
double x[3];
x[0] = 0.0;
@@ -75,10 +73,10 @@ TEST(ArrayUtils, FindInvalidIndex) {
}
TEST(MapValuesToContiguousRange, ContiguousEntries) {
vector<int> array;
std::vector<int> array;
array.push_back(0);
array.push_back(1);
vector<int> expected = array;
std::vector<int> expected = array;
MapValuesToContiguousRange(array.size(), &array[0]);
EXPECT_EQ(array, expected);
array.clear();
@@ -91,10 +89,10 @@ TEST(MapValuesToContiguousRange, ContiguousEntries) {
}
TEST(MapValuesToContiguousRange, NonContiguousEntries) {
vector<int> array;
std::vector<int> array;
array.push_back(0);
array.push_back(2);
vector<int> expected;
std::vector<int> expected;
expected.push_back(0);
expected.push_back(1);
MapValuesToContiguousRange(array.size(), &array[0]);
@@ -102,14 +100,14 @@ TEST(MapValuesToContiguousRange, NonContiguousEntries) {
}
TEST(MapValuesToContiguousRange, NonContiguousRepeatingEntries) {
vector<int> array;
std::vector<int> array;
array.push_back(3);
array.push_back(1);
array.push_back(0);
array.push_back(0);
array.push_back(0);
array.push_back(5);
vector<int> expected;
std::vector<int> expected;
expected.push_back(2);
expected.push_back(1);
expected.push_back(0);