Skip to content

Commit

Permalink
fixed the merge conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
abdoei committed Sep 25, 2023
1 parent 29af9a6 commit 39821a0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/StdLib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,6 @@ function StdDeque() where {T}
return StdDeque{T}()
end

Base.IndexStyle(::Type{<:StdDeque}) = IndexLinear()
Base.size(v::StdDeque) = (Int(cppsize(v)),)
Base.getindex(v::StdDeque, i::Int) = cxxgetindex(v,i)[]
Base.setindex!(v::StdDeque{T}, val, i::Int) where {T} = cxxsetindex!(v, convert(T,val), i)
Base.push!(v::StdDeque, x) = push_back!(v, x)
Base.pushfirst!(v::StdDeque, x) = push_front!(v, x)
Base.pop!(v::StdDeque) = pop_back!(v)
Base.popfirst!(v::StdDeque) = pop_front!(v)
Base.resize!(v::StdDeque, n::Integer) = resize!(v, n)
end

Base.IndexStyle(::Type{<:StdDeque}) = IndexLinear()
Base.size(d::StdDeque) = (Int(cppsize(d)),)
Base.resize!(d::StdDeque, n::Integer) = resize(d, n)
Expand Down

0 comments on commit 39821a0

Please sign in to comment.