aboutsummaryrefslogtreecommitdiff
path: root/src/utils.hpp
blob: 8c4cf4eb2a31971a7316275d86dec9eedf8374c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <memory>
#include <string>

/**
 * Converts a string to a unsigned integer.
 *
 * @param str A string that possibly is a unsigned integer
 * @returns A unsigned integer
 */
unsigned int str_to_uint(std::string str);