10 #ifndef FAISS_EXCEPTION_INCLUDED
11 #define FAISS_EXCEPTION_INCLUDED
31 const char*
what()
const noexcept
override;
40 handleExceptions(std::vector<std::pair<int, std::exception_ptr>>& exceptions);
47 explicit ScopeDeleter (
const T* ptr =
nullptr): ptr (ptr) {}
48 void release () {ptr =
nullptr; }
49 void set (
const T * ptr_in) { ptr = ptr_in; }
61 void release () {ptr =
nullptr; }
62 void set (
const T * ptr_in) { ptr = ptr_in; }
void handleExceptions(std::vector< std::pair< int, std::exception_ptr >> &exceptions)
const char * what() const noexceptoverride
from std::exception
Base class for Faiss exceptions.