Lines Matching refs:T
104 template<typename T>
105 bool Send(const T& value) { in Send()
106 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, &value, sizeof(T))); in Send()
110 } else if (static_cast<size_t>(ret) != sizeof(T)) { in Send()
118 template<class T, class Alloc = std::allocator<T>>
119 bool SendVector(const std::vector<T, Alloc>& vector) { in SendVector() argument
120 size_t size = vector.size() * sizeof(T); in SendVector()
142 template<typename T>
143 bool Receive(T* value) { in Receive()
144 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, reinterpret_cast<void*>(value), sizeof(T))); in Receive()
148 } else if (static_cast<size_t>(ret) != sizeof(T)) { in Receive()
156 template<class T, class Alloc = std::allocator<T>>
157 bool ReceiveVector(std::vector<T, Alloc>& vector) { in ReceiveVector() argument
163 vector.resize(size / sizeof(T)); in ReceiveVector()