16 lines
384 B
C++
16 lines
384 B
C++
#ifndef __WAVEFRONT_REPEAT_HPP__
|
|
#define __WAVEFRONT_REPEAT_HPP__
|
|
|
|
#include<array>
|
|
#include<cstdint>
|
|
|
|
namespace wavefront {
|
|
template<typename ValueType, std::size_t Length>
|
|
std::array<ValueType, Length> repeat_value(ValueType value) {
|
|
std::array<ValueType, Length> result;
|
|
result.fill(value);
|
|
return result;
|
|
};
|
|
}
|
|
|
|
#endif // __WAVEFRONT_REPEAT_HPP__
|