~ubuntu-branches/ubuntu/utopic/libthrust/utopic

« back to all changes in this revision

Viewing changes to host_vector.h

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2013-07-10 12:57:33 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130710125733-my19jic71sqsabaj
Tags: 1.7.0-1
* New upstream release.  (Closes: #715362)
* Update watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    host_vector(void)
68
68
      :Parent() {}
69
69
 
 
70
    /*! This constructor creates a \p host_vector with the given
 
71
     *  size.
 
72
     *  \param n The number of elements to initially craete.
 
73
     */
 
74
    __host__
 
75
    explicit host_vector(size_type n)
 
76
      :Parent(n) {}
 
77
 
70
78
    /*! This constructor creates a \p host_vector with copies
71
79
     *  of an exemplar element.
72
80
     *  \param n The number of elements to initially create.
73
81
     *  \param value An element to copy.
74
82
     */
75
83
    __host__
76
 
    explicit host_vector(size_type n, const value_type &value = value_type())
 
84
    explicit host_vector(size_type n, const value_type &value)
77
85
      :Parent(n,value) {}
78
86
 
79
87
    /*! Copy constructor copies from an exemplar \p host_vector.
129
137
    __host__
130
138
    host_vector(const device_vector<OtherT,OtherAlloc> &v);
131
139
 
 
140
    /*! Assign operator copies from an exemplar \p device_vector.
 
141
     *  \param v The \p device_vector to copy.
 
142
     */
 
143
    template<typename OtherT, typename OtherAlloc>
 
144
    __host__
 
145
    host_vector &operator=(const device_vector<OtherT,OtherAlloc> &v)
 
146
    { Parent::operator=(v); return *this; }
 
147
 
132
148
    /*! This constructor builds a \p host_vector from a range.
133
149
     *  \param first The beginning of the range.
134
150
     *  \param last The end of the range.