#ifndef __STAN__AGRAD__FWD__OPERATOR__LESS__THAN__OR__EQUAL__HPP__
#define __STAN__AGRAD__FWD__OPERATOR__LESS__THAN__OR__EQUAL__HPP__

#include <stan/agrad/fwd/fvar.hpp>
#include <stan/meta/traits.hpp>

namespace stan{

  namespace agrad{

    template <typename T1, typename T2>
    inline  
    bool
    operator<=(const fvar<T1>& x, const fvar<T2>& y) {
      return x.val_ <= y.val_;
    }

    template <typename T1, typename T2>
    inline 
    bool
    operator<=(const fvar<T1>& x, const T2& y) {
      return x.val_ <= y;
    }

    template <typename T1, typename T2>
    inline 
    bool
    operator<=(const T1& x, const fvar<T2>& y) {
      return x <= y.val_;
    }  
  }
}
#endif
