Header file defining methods to verify multiple DataLocation at once.
More...
#include "location_verifiers.h"
#include <algorithm>
Header file defining methods to verify multiple DataLocation at once.
- Author
- Jan Warchocki
- Date
- 28 May 2022
◆ allLocationsAreDevice()
bool allLocationsAreDevice |
( |
std::initializer_list< DataLocation > |
locations | ) |
|
Return true if all given locations are DEVICE.
- Parameters
-
locations | The list of locations to verify. |
- Returns
- True if all locations are DEVICE, false otherwise.
◆ allLocationsAreHost()
bool allLocationsAreHost |
( |
std::initializer_list< DataLocation > |
locations | ) |
|
Return true if all given locations are HOST.
- Parameters
-
locations | The list of locations to verify. |
- Returns
- True if all locations are HOST, false otherwise.
◆ allLocationsAreSame()
bool allLocationsAreSame |
( |
std::initializer_list< DataLocation > |
locations | ) |
|
Return true if all given locations are the same.
- Parameters
-
locations | The list of locations to verify. |
- Returns
- True if all locations are the same, false otherwise.