What's the meaning of ::std::vector [duplicate]

Refresh

April 2019

Views

97 time

1

This question already has an answer here:

I just saw in some DLib code, in a .cpp file a thing like that:

#include <stdio>

namespace {

  using namespace std;

  void foo() {
    ::std::vector<int> my_vector;
  }
}

Is there a reason we specify ::std:: in front of our vector we imported from std already ?

0 answers