C + + common errors: “error: XXX in namespace ‘STD’ does not name a template type”

Error “error: XXX in namespace ‘STD’ does not name a template type”
is reported

Or “error: XXX does not name a type”

Cause of error

The corresponding header file was not imported

resolvent

Add the corresponding header file

string

#include <string>

list

#include <list>

vector

#include <vector>

function

#include <functional>

Read More: