Pārlūkot izejas kodu

com: Concept naming

doc
Christos Houtouridis pirms 6 gadiem
vecāks
revīzija
e662a3e94b
3 mainītis faili ar 13 papildinājumiem un 11 dzēšanām
  1. +2
    -2
      include/utl/com/_1wire.h
  2. +2
    -2
      include/utl/com/i2c.h
  3. +9
    -7
      include/utl/com/spi.h

+ 2
- 2
include/utl/com/_1wire.h Parādīt failu

@@ -646,7 +646,7 @@ namespace _1wire_i_det {
* \name 1-wire type interface concept
*/
template <typename T>
concept bool _1wire_c = requires (T t, typename T::Speed s, _1wire_id_t id) {
concept bool _1Wire_i = requires (T t, typename T::Speed s, _1wire_id_t id) {
// Object type
requires not_<std::is_copy_constructible<T>::value>::value;
requires not_<std::is_copy_assignable<T>::value>::value;
@@ -710,7 +710,7 @@ namespace _1wire_i_det {
* \return True if _Tp is a 1-wire interface
*/
template <typename _Tp>
constexpr bool _1wire_c = _1wire_i_det::is_1wire_<_Tp>::value;
constexpr bool _1Wire_i = _1wire_i_det::is_1wire_<_Tp>::value;
#endif
//!@}


+ 2
- 2
include/utl/com/i2c.h Parādīt failu

@@ -227,7 +227,7 @@ namespace utl {
* i2c interface concept
*/
template <typename T>
concept bool i2c_c = requires (T t, const T ct, typename T::Sequence s) {
concept bool I2c_i = requires (T t, const T ct, typename T::Sequence s) {
// Object type
requires not_<std::is_copy_constructible<T>::value>::value;
requires not_<std::is_copy_assignable<T>::value>::value;
@@ -276,7 +276,7 @@ namespace utl {
* \return True if _Tp is a i2c interface
*/
template <typename _Tp>
constexpr bool i2c_c = i2c_i_details::is_i2c_<_Tp>::value;
constexpr bool I2c_i = i2c_i_details::is_i2c_<_Tp>::value;
#endif
//!@}


+ 9
- 7
include/utl/com/spi.h Parādīt failu

@@ -275,12 +275,13 @@ namespace utl {
/*!
* i2c interface concept
*/
//! @{
#if defined _utl_have_concepts
/*!
* i2c interface concept
*/
template <typename T>
concept bool spi_c = requires (T t, const T ct, typename T::Sequence s) {
concept bool Spi_i = requires (T t, const T ct, typename T::Sequence s) {
// Object type
requires not_<std::is_copy_constructible<T>::value>::value;
requires not_<std::is_copy_assignable<T>::value>::value;
@@ -321,10 +322,11 @@ namespace utl {
* \return True if _Tp is a spi interface
*/
template <typename _Tp>
constexpr bool spi_c = spi_i_details::is_spi_<_Tp>::value;
constexpr bool Spi_i = spi_i_details::is_spi_<_Tp>::value;
#endif
//!@}
//! @}
//! @}
} // namespace utl


Notiek ielāde…
Atcelt
Saglabāt