Пример #1
0
 static void process( model_type &result )
  {
   for( index_type index = 0; index < container_trait_type::size(); index ++ )
    {
     if( result.get( index ) <  bound_type::minimum( index ) )
      {
       result.set( index, bound_type::minimum( index ) );
       continue;
      }
     if(  bound_type::maximum( index ) < result.get( index ) )
      {
       result.set( index, bound_type::maximum( index ) );
       continue;
      }
    }
  }
Пример #2
0
 static index_type process( model_type const& m )
  {
   for( index_type index = 0; index < container_trait_type::size(); index ++ )
    {
     if( m.get( index ) <  bound_type::minimum( index ) )
      {
       return index;
       continue;
      }
     if(  bound_type::maximum( index ) < m.get( index ) )
      {
       return index;
       continue;
      }
    }
   return container_trait_type::size();
  }