Files
compute-runtime/core/helpers/extendable_enum.h
Jobczyk, Lukasz cbc04629fd Move memory pool to the core dir
Related-To: NEO-3677

Change-Id: I04fce78640cb0bfc26ad8950261324d997cd113a
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-13 09:56:21 +02:00

22 lines
316 B
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstdint>
struct ExtendableEnum {
constexpr operator uint32_t() const {
return value;
}
constexpr ExtendableEnum(uint32_t val) : value(val) {}
protected:
uint32_t value;
};