blob: 27ef4c6422124bc4213a714df13f8bdc6f3d37b8 [file] [log] [blame]
Andrew Geissler3b025e62019-02-01 10:33:54 -06001#pragma once
2
3#include <boost/container/flat_map.hpp>
4#include <string>
5
6/** @brief Get well known name of input unique name
7 *
8 * If user passes in well known name then that will be returned.
9 *
10 * @param[in] owners - Current list of owners
11 * @param[in] request - The name to look up
12 * @param[out] wellKnown - The well known name if found
13 *
14 * @return True if well known name is found, false otherwise
15 */
16bool getWellKnown(
17 const boost::container::flat_map<std::string, std::string>& owners,
18 const std::string& request, std::string& wellKnown);