Function icrar::TryParseComputeImplementation

Function Documentation

bool icrar::TryParseComputeImplementation(const std::string &value, ComputeImplementation &out)

Safely parses a string to a compute implementation by returning true if the conversion was successful.

Parameters:
  • value – serialized compute implementation string

  • out – out compute implemation value that is mutated on success, unmodified otherwise

Returns:

true if value was converted succesfully, false otherwise

Returns:

false if value was converted unsucessfully