File: num_fields.hpp

package info (click to toggle)
reflect-cpp 0.21.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,128 kB
  • sloc: cpp: 50,336; python: 139; makefile: 30; sh: 3
file content (14 lines) | stat: -rw-r--r-- 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef RFL_NUM_FIELDS_HPP_
#define RFL_NUM_FIELDS_HPP_

#include "internal/num_fields.hpp"

namespace rfl {

/// Returns the number of fields fields.
template <class T>
constexpr std::size_t num_fields = internal::num_fields<T>;

}  // namespace rfl

#endif