-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
1,565 additions
and
1,495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef RFL_INTERNAL_ARRAY_HPP_ | ||
#define RFL_INTERNAL_ARRAY_HPP_ | ||
|
||
#include <array> | ||
#include <type_traits> | ||
|
||
#include "to_std_array.hpp" | ||
|
||
namespace rfl { | ||
namespace internal { | ||
|
||
template <class T> | ||
requires std::is_array_v<T> | ||
struct Array { | ||
using Type = T; | ||
using StdArrayType = to_std_array_t<T>; | ||
|
||
Array() = default; | ||
Array(const StdArrayType &_arr) : arr_(_arr) {} | ||
Array(StdArrayType &&_arr) : arr_(std::move(_arr)) {} | ||
Array(const T &_arr) : arr_(to_std_array(_arr)) {} | ||
Array(T &&_arr) : arr_(to_std_array(_arr)) {} | ||
|
||
~Array() = default; | ||
|
||
StdArrayType arr_; | ||
}; | ||
|
||
} // namespace internal | ||
} // namespace rfl | ||
|
||
#endif |
Oops, something went wrong.