1 #ifndef __JLANG__JVECTORIZE__
2 #define __JLANG__JVECTORIZE__
17 namespace JPP {
using namespace JLANG; }
24 template<
class JElement_t,
class JAllocator_t = std::allocator<JElement_t> >
36 template<
class JValue_t,
size_t N>
43 for (
size_t i = 0; i !=
N; ++i) {
63 buffer.assign(__begin, __end);
77 template<
class T,
class JType_t,
class JValue_t>
84 for (
T __p = __begin; __p != __end; ++__p) {
85 buffer.push_back(*__p.*value);
100 template<
class T,
class JType_t,
class JValue_t>
107 for (
T __p = __begin; __p != __end; ++__p) {
108 buffer.push_back((*__p.*
function)());
121 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
134 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
151 template<
class T,
class JResult_t,
class JComparator_t>
154 JResult_t std::iterator_traits<T>::value_type::*value,
155 const JComparator_t& comparator)
162 if (p0 == __end) {
return p0; }
163 if (p1 == __end) {
return p1; }
166 if (comparator((*p0).*value, (*p1).*value))
172 for ( ; p2 != __end; ++
p2) {
174 if (comparator((*p0).*value, (*p1).*value)) {
175 if (comparator((*p1).*value, (*p2).*value)) {
178 }
else if (comparator((*p0).*value, (*p2).*value)) {
182 if (comparator((*p2).*value, (*p0).*value)) {
const array_type< JValue_t > & get_values(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of values of map.
const array_type< JValue_t > & make_array(const JValue_t(&array)[N])
Method to create array of values.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
T make_set(T __begin, T __end, JResult_t std::iterator_traits< T >::value_type::*value, const JComparator_t &comparator)
Method to exclude outliers from already sorted data.
Forward declarations of STD containers.
then usage $script[input file[working directory[option]]] nWhere option can be N
Auxiliary data structure for return type of make methods.
const array_type< JKey_t > & get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.