cpp-common: rename `bt2_common` namespace -> `bt2c`
[babeltrace.git] / src / cpp-common / bt2c / uuid-view.cpp
1 /*
2 * Copyright (c) 2016-2022 Philippe Proulx <pproulx@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7 #include "uuid-view.hpp"
8 #include "uuid.hpp"
9
10 namespace bt2c {
11
12 UuidView::UuidView(const Uuid& uuid) noexcept : _mUuid {uuid.data()}
13 {
14 }
15
16 UuidView::operator Uuid() const noexcept
17 {
18 return Uuid {*this};
19 }
20
21 } /* namespace bt2c */
This page took 0.029719 seconds and 4 git commands to generate.