可以使用`std::filesystem`库中的`exists()`函数来判断指定全路径的文件是否存在。示例代码如下:
```cpp
#include 
#include 
namespace fs = std::filesystem;
int main() {
    std::string path = "/path/to/file";
    if (fs::exists(path)) {
        std::cout << "File exists." << std::endl;
    } else {
        std::cout << "File does not exist." << std::endl;
    }
    return 0;
}
```
需要注意的是,`std::filesystem`库在C++17中才被引入,如果您的编译器不支持C++17,则需要使用其他方法来判断文件是否存在。