コード例 #1
0
object_slice
object_operators<U>::slice(object_cref start, slice_nil)
{
    object_cref2 x = *static_cast<U*>(this);
    return object_slice(x, std::make_pair(borrowed(start.ptr()), allow_null((PyObject*)0)));
}
コード例 #2
0
object_slice
object_operators<U>::slice(object_cref start, object_cref finish)
{
    object_cref2 x = *static_cast<U*>(this);
    return object_slice(x, std::make_pair(borrowed(start.ptr()), borrowed(finish.ptr())));
}
コード例 #3
0
object_slice
object_operators<U>::slice(slice_nil, object_cref finish)
{
    object_cref2 x = *static_cast<U*>(this);
    return object_slice(x, std::make_pair(allow_null((PyObject*)0), borrowed(finish.ptr())));
}
コード例 #4
0
ファイル: object_slices.hpp プロジェクト: DD-L/lproxy
object_slice
object_operators<U>::slice(slice_nil, slice_nil)
{
    object_cref2 x = *static_cast<U*>(this);
    return object_slice(x, api::slice_key(allow_null((PyObject*)0), allow_null((PyObject*)0)));
}