Remove some unused includes in C++ files
[babeltrace.git] / src / cpp-common / bt2 / internal / utils.hpp
CommitLineData
dcfc2f5c
PP
1/*
2 * Copyright 2019-2020 (c) Philippe Proulx <pproulx@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef BABELTRACE_CPP_COMMON_BT2_INTERNAL_UTILS_HPP
8#define BABELTRACE_CPP_COMMON_BT2_INTERNAL_UTILS_HPP
9
39278ebc 10#include "../exc.hpp"
dcfc2f5c
PP
11
12namespace bt2 {
13namespace internal {
14
15template <typename LibObjPtrT>
16void validateCreatedObjPtr(const LibObjPtrT libOjbPtr)
17{
18 if (!libOjbPtr) {
39278ebc 19 throw MemoryError {};
dcfc2f5c
PP
20 }
21}
22
4927bae7
PP
23template <typename ObjT>
24struct TypeDescr;
25
b5f55e9f
PP
26} /* namespace internal */
27} /* namespace bt2 */
dcfc2f5c 28
b5f55e9f 29#endif /* BABELTRACE_CPP_COMMON_BT2_INTERNAL_UTILS_HPP */
This page took 0.032093 seconds and 4 git commands to generate.