mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add sprout::string_ref
support conversion array-like container iterator to pointer
This commit is contained in:
parent
fa1d769bdf
commit
1ef8a6a63b
64 changed files with 1570 additions and 254 deletions
|
@ -30,6 +30,15 @@
|
|||
# endif // #ifdef SPROUT_NO_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
|
||||
//
|
||||
// SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
# ifdef SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
# endif // #ifdef SPROUT_NO_CONSTEXPR
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
|
||||
//
|
||||
// SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
//
|
||||
|
@ -66,6 +75,15 @@
|
|||
# endif // #ifdef SPROUT_NO_DELEGATING_CONSTRUCTORS
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
|
||||
//
|
||||
// SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
//
|
||||
#ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
# ifdef SPROUT_NO_UNICODE_LITERALS
|
||||
# define SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
# endif // #ifdef SPROUT_NO_UNICODE_LITERALS
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
|
||||
//
|
||||
// SPROUT_CONFIG_USE_SSCRISK_CEL
|
||||
//
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
# define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#endif
|
||||
|
||||
#if !__has_feature(cxx_explicit_conversions)
|
||||
# define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#endif
|
||||
|
||||
#if !__has_feature(cxx_noexcept)
|
||||
# define SPROUT_NO_NOEXCEPT
|
||||
#endif
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
# define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
# define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#endif
|
||||
|
||||
#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__))
|
||||
# define SPROUT_NO_NOEXCEPT
|
||||
#endif
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
#ifndef SPROUT_NO_DELETED_FUNCTIONS
|
||||
# define SPROUT_HAS_DELETED_FUNCTIONS
|
||||
#endif
|
||||
#ifndef SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_HAS_EXPLICIT_CONVERSION_OPERATORS
|
||||
#endif
|
||||
#ifndef SPROUT_NO_NOEXCEPT
|
||||
# define SPROUT_HAS_NOEXCEPT
|
||||
#endif
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
#ifdef SPROUT_NO_DELETED_FUNCTIONS
|
||||
# define SPROUT_NO_CXX11_DELETED_FUNCTIONS
|
||||
#endif
|
||||
#ifdef SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
|
||||
#endif
|
||||
#ifdef SPROUT_NO_NOEXCEPT
|
||||
# define SPROUT_NO_CXX11_NOEXCEPT
|
||||
#endif
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
# define SPROUT_NO_CONSTEXPR
|
||||
# define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
# define SPROUT_NO_DELETED_FUNCTIONS
|
||||
# define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_NO_NOEXCEPT
|
||||
# define SPROUT_NO_TEMPLATE_ALIASES
|
||||
# define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
#ifndef SPROUT_CONFIG_COMPILER_VACPP_HPP
|
||||
#define SPROUT_CONFIG_COMPILER_VACPP_HPP
|
||||
|
||||
#define SPROUT_NO_CONSTEXPR
|
||||
#if !__IBMCPP_CONSTEXPR
|
||||
# define SPROUT_NO_CONSTEXPR
|
||||
#endif
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#if !__IBMCPP_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#endif
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define SPROUT_NO_CONSTEXPR
|
||||
#define SPROUT_NO_DEFAULTED_FUNCTIONS
|
||||
#define SPROUT_NO_DELETED_FUNCTIONS
|
||||
#define SPROUT_NO_EXPLICIT_CONVERSION_OPERATORS
|
||||
#define SPROUT_NO_NOEXCEPT
|
||||
#define SPROUT_NO_TEMPLATE_ALIASES
|
||||
#define SPROUT_NO_USER_DEFINED_LITERALS
|
||||
|
|
|
@ -31,6 +31,12 @@
|
|||
# define SPROUT_DELETED_FUNCTION_DECL ;
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELETED_FUNCTIONS
|
||||
|
||||
#ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_USE_EXPLICIT_CONVERSION_OPERATORS 1
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
# define SPROUT_USE_EXPLICIT_CONVERSION_OPERATORS 0
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_EXPLICIT_CONVERSION_OPERATORS
|
||||
|
||||
#ifndef SPROUT_CONFIG_DISABLE_NOEXCEPT
|
||||
# define SPROUT_NOEXCEPT noexcept
|
||||
# define SPROUT_NOEXCEPT_EXPR(EXPR) noexcept(EXPR)
|
||||
|
@ -59,6 +65,12 @@
|
|||
# define SPROUT_USE_DELEGATING_CONSTRUCTORS 0
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_DELEGATING_CONSTRUCTORS
|
||||
|
||||
#ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
# define SPROUT_USE_UNICODE_LITERALS 1
|
||||
#else // #ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
# define SPROUT_USE_UNICODE_LITERALS 0
|
||||
#endif // #ifndef SPROUT_CONFIG_DISABLE_UNICODE_LITERALS
|
||||
|
||||
#ifndef SPROUT_CONFIG_USE_SSCRISK_CEL
|
||||
# define HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT <sprout/functional/functor.hpp>
|
||||
# define HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT <sprout/algorithm/non_modifying.hpp>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue