File: utils.hpp

package info (click to toggle)
python-rocksdb 0.8.0~rc3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 480 kB
  • sloc: python: 798; cpp: 408; makefile: 158
file content (8 lines) | stat: -rw-r--r-- 145 bytes parent folder | download
1
2
3
4
5
6
7
8
#include <vector>

namespace py_rocks {
    template <typename T>
    const T* vector_data(std::vector<T>& v) {
        return v.data();
    }
}